The main goal of WordPress-Contained is to get a WordPress blog up and running as quickly as possible. The tool we use to Orchestrate this process is Ansible and the tool we use to "Contain" our blog is Docker.
To execute Ansible Playbook it will be assumed that you have the following tasks completed:
Task to be completed before hand:
- A minimal installation of CentOS 7/ RHEL 7 setup and ready to go.
- A user account with sudo access and SSH keys configured. (I recommend ssh-copy-id user@hostname.example.com if you didn't already put it in a KickStart file.)
- Ansible 2.0 or greater installed on Ansible host. I personally prefer CentOS for the Asible host, but any popular Linux distros should do.
1.) Make sure to put all servers that you want push changes to into the "hosts" file within the playbook. Specify the under the "[RHEL7]" group. I named mine "unicorn"
- [RHEL7] unicorn.mysite.internal
- Ping Test(type): ansible -m ping RHEL7 -u SudoUser -K -i hosts
2.) Within the "group_var/all.yml" file change passwords for the following
- mysql_root_password
- wordpress_mysql_root_password
1.) cd into the WordPress playbook (there should be a site.yml file present): 2.) Execute the playbook with a user account that has SUDO access.
- type: cd wordpress-contained
- type: ansible-playbook -i hosts site.yml -u SudoUser -K -l RHEL7
- 1.) For WordPress point browser to: http://unicorn.mysite.internal:8080
- 2.) For PHPMyAdmin point browser to: http://unicorn.mysite.internal:8181
This was created by Ray Thomas (ray.thomas@gmail.com).