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