Skip to content

🛠️ Ansible Playbook for automating wordpress website setup in NGINX server.

Notifications You must be signed in to change notification settings

l3lackcurtains/ansible-wordpress-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Wordpress Nginx

Ansible Playbook for automating wordpress website setup in NGINX server.

What's included

  • Nginx
  • Php 7.2
  • Mysql DB
  • WP-Cli

Step 1: Update Playbook Hosts

Change the IP Address with your custom IP address or localhost

[webhost]
142.93.214.145 ansible_python_interpreter=/usr/bin/python3

Step 2: Configure automation by updating playbook variables

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

Step 3: Run the playbook

ansible-playbook play.yml

Tested Linux Distribution

  • Ubuntu 18.04 x64
  • Ubuntu 16.04 x64

About

🛠️ Ansible Playbook for automating wordpress website setup in NGINX server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published