Quick installation wordpress using Ansible on Ubuntu.
What Ansible script is doing:
- Adding new user to Ubuntu Linux
- Install docker compose
- Up Wordpress, nginx, redis, certbot and MariaDB containers
- Configure domain and redis in
wp-config.php
- Add to cron cert-bot for renewing certificates for domain.
- Some files permissions fixes
- Edit your DNS zone to bound your domain and your IP, so Let's Encrypt could check that you have rights on your domain name.
- Put your variables in ansible/roles/wordpress/vars/main.yaml
- Add you server to inventory.ini
- Run ansible:
ansible-playbook site.yaml -i inventory.ini
- Cert-bot should successfully received certificate
docker logs certbot
- After that uncomment NGINX configuration for SSL
ansible/roles/wordpress/template/nginx.conf.j2
- Running ansible job again or uncomment SSL block in /wordpress/nginx-conf/nginx.conf on server and execute
docker restart webserver
- Object Cache - for redis caching (need to enable caching on after activation)
- WP Super Cache - html caching (need to enable caching on after activation)
- Classic Editor
- All In One WP Security
- Move admin page with plugin All In One WP Security