Ansible Playbook for automating wordpress website setup in NGINX server.
What's included
- Nginx
- Php 7.2
- Mysql DB
- WP-Cli
Change the IP Address with your custom IP address or localhost
[webhost]
142.93.214.145 ansible_python_interpreter=/usr/bin/python3
Update variables with custom data from ./group_vars/all.yml
# ansible public and private keys
ansible_ssh_pub_key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
ansible_ssh_private_key_file: ~/.ssh/id_rsa
# sudo user and group
ssh_user: ansible
ssh_groups: "sudo"
# Wordpress Database Information
host_name: "142.93.214.145"
wp_db_name: wordpress
wp_db_user: admin
wp_db_password: w0rdpr355
wp_db_prefix: wp_
# Wordpress Website Information
wp_title: Demo Website
wp_admin_user: admin
wp_admin_password: admin450
wp_admin_email: admin@example.com
ansible-playbook play.yml
- Ubuntu 18.04 x64
- Ubuntu 16.04 x64