As we start to expand on our Ansible Catalog, we are excited to provide our Ansible Playbook for deploying WordPress to the Open Source community! We have taken great care in developing our curated WordPress-UltraStack-Ansible playbook to allow system administrators, web developers, and content designers to easily deploy WordPress.
To simplify the process of getting started, we recommend that users are familiar with Git and OpenSSH before proceeding.
Below we cover how to run the WordPress UltraStack Ansible Playbook from your Ansible Control Node.
Don’t have an InMotion Hosting server? Get started with one of our scalable Cloud VPS hosting plans today.
Run the WordPress UltraStack Playbook from an Ansible Control Node
Ansible in the Ansible Control Node is the easiest option. The Ansible Control Node comes with all needed dependencies to run Ansible, simplifying the process of getting started so you can reach your goals faster.
The below guide is the brief process to help you become familiar quickly. Our recommendation is to use Version Control Software and GitHub (or your preferred remote repo) for production setups. Learn more about How to Backup and Version Control an Ansible Playbook.
- Ensure you’ve added an SSH Key to your Ansible Control Node in AMP
- SSH into your Ansible Control Node
- From the current directory (/home/ansible), navigate to the WordPress UltraStack Ansible Playbook:
cd wordpress-ultrastack-ansible
- Copy the sample inventory.yml file to a new file:
cp inventory.sample.yml inventory.yml
- Edit inventory.yml in your preferred text editor:
nano inventory.yml
- In the new inventory.yml file, you will need to edit the placeholder values. At minimum, you will need to change the references to
domain.tld:
under hosts
If you are evaluating the playbook, you may use sed as demonstrated below to trivially replace the placeholder domain with a domain name that you actually own and is pointing to the host you want to deploy to:sed -i 's/domain.tld/your-actual-domain.tld/g' inventory.yml
- From the Ansible Control Node, create an SSH key.
- Using our Manage My SSH Keys guide, install the public key you created on the Ansible Control Node to any Cloud Server or Bare Metal Dedicated Server you want to manage with Ansible.
- On your Ansible Control Node, run the WordPress UltraStack Ansible Playbook:
ansible-playbook -i inventory.yml site.deploy.yml
- After your WordPress UltraStack Ansible Playbook runs successfully, visit the domain to see your new WordPress website.
If you have issues at any time, feel free to ask a question in our Community Support Center or, for paid support, contact our Managed Hosting team.
Now that you understand Ansible and your Ansible Control Node, we recommend you learn how to use Git for Backup and Version Control. Or if you’re already familiar with Git, learn about using the Ansible Galaxy community to find pre-built playbooks for hundreds of popular software deployments.