---
# Installs an nginx vhost for the given target with a rewrite only
# Must define both `nginx_rewrite_hostname` and `nginx_rewrite_url` on the command line or inventory file

- hosts: nginx_rewrite
  roles:
    - nginx_vhost
  vars:
    hostname: "{{ nginx_rewrite_hostname }}"
    nginx_paths:
      - path: "/"
        is_proxy: false
        rewrite: "{{ nginx_rewrite_url }}"
  become: yes

Add a simple nginx rewrite playbook
Add a simple nginx rewrite playbook

Signed-off-by: Peter Ansell <aaf1ec639befe0a570b950d5d6cbd0c6638a063e@yahoo.com>
