This Ansible playbook deploys WordPress using either an optimized LAMP stack or the suite of utilities that drive the heavily-optimized InMotion UltraStack.
| File | Description |
|---|---|
| ansible.cfg | Ansible configuration file. |
| inventory.sample.yml | Sample Ansible inventory. |
| requirements.txt | Required Python dependencies. |
| requirements.yml | Required Ansible dependencies. |
-
Install Python dependencies using virtualenv:
$ virtualenv venv $ source venv/bin/activate (venv) $ pip install -r requirements.txt -
Install Ansible dependencies:
$ ansible-galaxy install -r requirements.yml
-
Copy inventory.sample.yml:
$ cp inventory{.sample,}.yml -
Edit your
inventory.yml:# Feel free to use your preferred editor $ vi inventory.ymlIn the
inventory.ymlfile created in the last step, you will need to edit the placeholder values. At minimum, you will need to change the reference todomain.tld:underhosts:$ diff inventory.sample.yml inventory.yml 22c22 < domain.tld: --- > a-real-domain.tld:
-
Run the playbook:
$ ansible-playbook -i inventory.yml site.yml
To grab the latest copy of the Playbook and update an existing deployment, you may use the following steps:
-
Pull any changes to the playbook:
$ git pull origin master
-
Update the Python dependencies:
$ pip install -Ur requirements.txt
-
Update the Playbook dependencies:
$ ansible-galaxy install -r requirements.yml --force
-
Run the Playbook:
$ ansible-playbook -i inventory.yml site.yml
