Skip to content

My project as a learner is to create an Ansible playbook to automate the installation of a wordpress site.

Notifications You must be signed in to change notification settings

sodbaveka/wordpress_installation_with_ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Table of Contents


  1. General Info
  2. Technologies
  3. Installation
  4. License
  5. Ressources

General Info


Hello World!

My name is Mickaël alias sodbaveka. I created this repository as a lab to discover git, gitHub, Bash, Python and Ansible.

My project as a learner is to create an Ansible playbook to automate the installation of a wordpress website.

Running this playbook will perform the following actions on your Ansible hosts :

  • Install aptitude, which is preferred by Ansible as an alternative to the apt package manager.
  • Installation of the required LAMP packages and PHP extensions.
  • Creation and validation of a new VirtualHost Apache for the WordPress site.
  • Activation of the Apache rewrite module (mod_rewrite).
  • Disable the default Apache website.
  • Sets the password for the MySQL root user.
  • Removal of anonymous MySQL accounts and the test database.
  • Creation of a new MySQL database and a user for the WordPress site.
  • Configure the UFW parameter to allow HTTP traffic on the configured port (80 by default).
  • Download and unpack WordPress.
  • Set the correct directory ownership and permissions.
  • Define the wp-config.php file using the template provided.

Please feel free to message me if you have any questions.

Bye ;-)

Technologies


A list of technologies used within the project :

  • Linux Debian 10.8
  • ansible 2.10.8
    • config file = /etc/ansible/ansible.cfg
    • configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
    • ansible python module location = /usr/local/lib/python3.7/dist-packages/ansible
    • executable location = /usr/local/bin/ansible
  • python version = 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0]

Installation


  • Download :
$  git clone hhttps://github.com/sodbaveka/wordpress_installation_with_ansible.git
  • Complete the path to utility classes :

    • In /etc/ansible/ansible.cfg, add the library/utils directory to the option 'module_utils'.
  • Launch :

$ cd ../path/to/the/file
$ ansible-playbook -i inventories/mainInventory.yml -K mainPlaybook.yml 

License


Ressources


About

My project as a learner is to create an Ansible playbook to automate the installation of a wordpress site.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published