add conditional on config section of playbook

This commit is contained in:
Ruben Blanco 2024-02-15 17:59:13 +01:00
parent 5b59c3e6fb
commit bcc963e9f9
4 changed files with 5 additions and 1 deletions

View File

@ -14,4 +14,5 @@
- name: "[CONFIG CENTRALIZED AUTH] Config centralized auth"
import_role:
name: config-centralized-auth
name: config-centralized-auth
when: centralized-auth_enabled is defined and centralized-auth_enabled

View File

@ -15,3 +15,4 @@
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
import_role:
name: config-fail2ban
when: fail2ban_enabled is defined and fail2ban_enabled

View File

@ -15,3 +15,4 @@
- name: "[CONFIG HOSTNAME] Configure hostname"
import_role:
name: config-hostname
when: hostname_enabled is defined and hostname_enabled

View File

@ -15,4 +15,5 @@
- name: "[CONFIG HOSTS FILE] Configure hosts file"
import_role:
name: config-hosts
when: hosts_enabled is defined and hosts_enabled