README.md 1000 Bytes
Newer Older
1 2 3 4 5 6
# Ansible scripts

This is a library with ansible paybooks useful for any LDH developer.

## Using shipyard

7
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 `myserver`:
8 9 10


```
11
$ shipyard playbook myserver ansible_script.yml
12 13
```

14 15
## Contained playbooks

16 17 18 19 20 21 22 23

### `liberty_shop.yml`

This playbook installs and configures the Apache, MariaDB, PHP7+FPM stack, then installs  `wp_cli` wordpress then wordpress, woocommerce and other plugins.

In order to use this playbook you need to install some roles with `ansible-galaxy`:

```bash
24
ansible-galaxy install geerlingguy.php geerlingguy.php-xdebug geerlingguy.mailhog geerlingguy.apache-php-fpm geerlingguy.mysql oefenweb.wordpress
25 26 27 28 29 30 31 32 33 34
```
```

Once finished you can in run the playbook:

```
$ shipyard playbook myserver liberty_shop.yml
```

Step by step instructions can be found [in the wiki](https://source.puri.sm/liberty/ldh_developer/wikis/woocommerce/install).