More than 455 million websites in the world use Wordpress as a CMS - Content Management System. It is installed on top of the LAMP stack, in this lab you will attempt to automate Wordpress installation using Ansible.

Manual Steps:

  1. Install the following packages:
  • php-mysql
  • php
  • mariadb-server
  • apache2
  • python3-pymysql
  1. Allow service HTTP and HTTPS in the firewall

  2. Start and Enable the mariaDB service

  3. Create a new database in mariaDB named wordpress and give new user admin access to the wordpress database with an appropriate password

  4. Download and extract https://wordpress.org/latest.tar.gz

  5. Copy the wordpress directory to /var/www/html/

  6. Allow the HTTPD service system user access to the newly copied directory recursively

  7. Once done successfully, navigate to your IP and follow the on screen steps.