Skip to content
Snippets Groups Projects
Commit 5fe2e3f9 authored by Noe Nieto's avatar Noe Nieto :speech_balloon:
Browse files

Ansible playbook to install woocommerce

parent ed027f68
No related branches found
No related tags found
1 merge request!5New stuff for shipyard
# Ansible scripts
This is a library with ansible paybooks useful for any LDH developer.
## Using shipyard
If you are using `shipyard` to manage your VMs look at the following example. Lets run the playbook `liberty_shop.yml` to a VM with hostname `starblade`:
```
$ shipyard playbook starblade liberty_shop.yml
```
---
- name: Setup mariadb
hosts: all
become: yes
roles:
- role: geerlingguy.mysql
vars:
mysql_enabled_on_startup: true
mysql_packages:
- mycli
- mariadb-client
- mariadb-server
mysql_root_password_update: true
mysql_users:
- name: woops
host: localhost
password: 12345678
priv: "woops.*:ALL"
mysql_databases:
- name: woops
encoding: utf8
collation: utf8_unicode_ci
overwrite_global_mycnf: true
- name: Setup and configuration of PHP
become: yes
hosts: all
roles:
- geerlingguy.php
- geerlingguy.php-xdebug
- geerlingguy.mailhog
- geerlingguy.apache-php-fpm
vars:
project_tag: "Liberty Shop"
sendmail_path: "{{ mailhog_install_dir }}/mhsendmail"
php_enable_php_fpm: true
php_fpm_listen: "127.0.0.1:9000"
php_fpm_listen_allowed_clients: "127.0.0.1"
php_packages_extra:
- php-mysql
- php-intl
- php-pear
- php-imagick
- php-imap
- php-mcrypt
- php-memcache
- php-pspell
- php-recode
- php-sqlite3
- php-tidy
- php-xmlrpc
- php-xsl
php_enable_webserver: true
apache_vhosts:
- servername: "woops.puri.sm"
documentroot: "/var/www/woops.puri.sm"
extra_parameters: |
ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/var/www/woops.puri.sm"
- name: Create and setup a wordpress site with woocommerce
become: yes
hosts: all
roles:
- oefenweb.wordpress
vars:
wordpress_installs:
- name: woops.puri.sm
dbname: woops
dbuser: woops
dbpass: 12345678
dbhost: localhost
path: /var/www/woops.puri.sm
owner: vagrant
group: vagrant
recurse: false
url: http://woops.puri.sm
title: Purism Liberty Shop
admin_name: admin
admin_email: admin@puri.sm
admin_password: 'MyPa55Pra5e'
themes:
- name: twentytwelve
activate: true
plugins:
- name: woocommerce
activate: true
users: {}
options: []
queries: []
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment