feat: Add conditional for vhost creation

This commit is contained in:
gemini
2026-03-03 13:09:14 +01:00
parent 45533c1e27
commit 8c1dcb5b8a
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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)