feat: Add conditional for vhost creation
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
- name: nginx proxy init
|
- name: nginx proxy init
|
||||||
hosts: proxy-clean
|
hosts: proxy-clean
|
||||||
become: true
|
become: true
|
||||||
|
vars:
|
||||||
|
bool_create_vhost: true
|
||||||
roles:
|
roles:
|
||||||
- nginx-proxy
|
- nginx-proxy
|
||||||
@@ -14,3 +14,4 @@
|
|||||||
- name: Include Create Vhosts tasks
|
- name: Include Create Vhosts tasks
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: create_vhosts.yml
|
file: create_vhosts.yml
|
||||||
|
when: bool_create_vhost | default(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user