- Install Apache, MySQL RDBMS, PHP and appropriate Apache moules
- Creates MySQL wp user and db.
- Create Apache virtual host config file and enables it.
- Download latest WordPress distribution and extract archive contens to virtual host root directory
- Updates WP config file with given DSN and credentials
- Restart Apache server if need.
Run for play:
ansible-playbook -i hosts --ask-become-pass -e @mysql-root-password.enc -e v_host_domain_name=mylab.local -e v_host_wordpress_domain_name=wp.local --ask-vault-pass wordpress-playbook.yml