Skip to content

Nail081994/ansible-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible-Wordpress Role

This role install and configure Wordpress CMS to your Ubuntu server.

Requirements

Prepared and configured Linux server with the following installed soft:

  • Nginx
  • MySQL
  • PHP
  • Ansible 2.7 or higher (on local machine which will execute Ansible playbooks)

See some topics for this such as:

Role Variables

  • mysql_version # Version of MySQL to be installed thought the playing this Ansible role
  • db_user # Name of Wordpress database owner-user
  • db_name # Name of database for Wordpress
  • db_password # Password of database
  • db_host # Database host
  • db_user_priv # Privileges that you will grant to your database user
  • nginx_version # Nginx (Web-server) version to be installed thought the playing this Ansible role
  • user # Name of remote user that you want to create
  • group # Group for created remote user
  • your_domain # Your site ip-address or domain name
  • php-fpm_version # Version of PHP that you want to install
  • wordpress_version # Wordress release version

Example Playbook

    - hosts: servers
      become: yes
      vars_file:
        - vars/main.yml
      roles:
         - { role: ansible-wordpress }