Ansible playbook to Install WordPress, Nginx and Let'sEncrypt
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
group_vars
roles
.gitignore
LICENSE
README.md
ansible-user-setup.yml
production.example
site.yml

README.md

Ansible playbook "wordpress-nginx-letsencrypt"

This playbook is based on ansible-examples, and Original licence.

Overview

Ansible playbook to Install WordPress-ja, MariaDB, PHP7, Nginx on Ubuntu Server.
Set to HTTPS on "Let's Encrypt" module.

Requirements

Ansible 2.4 or newer.
Remote host where Ubuntu server is installed.

Usage

Edit group_vars/all.yml.example and Save as group_vars/all.yml file.
Edit production.example and Save as production.yml file.
Set "ANSIBLE_PUBKEY" environment variable to public key file path.

Expects below commands before run playbooks.

$ ssh-agent bash  
$ ssh-add "PRIVATE KEY FILE"  

First step ONLY.

$ ansible-playbook -i production ansible-user-setup.yml

To setup server

$ ansible-playbook -i production site.yml

Easy to setup WordPress!

Author

Blog