Ansible template module for wordpress nginx vhost

In this post, I will share a simple playbook that run on localhost to demonstrate ansible template module with  nginx vhost for WordPress.

playbook-wp-vhost.yml

templates/wp-vhost.conf.j2

Directory structure layout:

How to run playbook:


Also published on Medium.

Leave a Reply

avatar
  Subscribe  
Notify of