add conditional on config section of playbook
This commit is contained in:
parent
5b59c3e6fb
commit
bcc963e9f9
|
@ -14,4 +14,5 @@
|
||||||
|
|
||||||
- name: "[CONFIG CENTRALIZED AUTH] Config centralized auth"
|
- name: "[CONFIG CENTRALIZED AUTH] Config centralized auth"
|
||||||
import_role:
|
import_role:
|
||||||
name: config-centralized-auth
|
name: config-centralized-auth
|
||||||
|
when: centralized-auth_enabled is defined and centralized-auth_enabled
|
|
@ -15,3 +15,4 @@
|
||||||
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
|
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
|
||||||
import_role:
|
import_role:
|
||||||
name: config-fail2ban
|
name: config-fail2ban
|
||||||
|
when: fail2ban_enabled is defined and fail2ban_enabled
|
||||||
|
|
|
@ -15,3 +15,4 @@
|
||||||
- name: "[CONFIG HOSTNAME] Configure hostname"
|
- name: "[CONFIG HOSTNAME] Configure hostname"
|
||||||
import_role:
|
import_role:
|
||||||
name: config-hostname
|
name: config-hostname
|
||||||
|
when: hostname_enabled is defined and hostname_enabled
|
||||||
|
|
|
@ -15,4 +15,5 @@
|
||||||
- name: "[CONFIG HOSTS FILE] Configure hosts file"
|
- name: "[CONFIG HOSTS FILE] Configure hosts file"
|
||||||
import_role:
|
import_role:
|
||||||
name: config-hosts
|
name: config-hosts
|
||||||
|
when: hosts_enabled is defined and hosts_enabled
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue