add conditionals to config section

This commit is contained in:
Ruben Blanco 2024-02-15 18:03:48 +01:00
parent bcc963e9f9
commit 0d8c436e79
6 changed files with 10 additions and 4 deletions

View File

@ -15,3 +15,4 @@
- name: "[CONFIG HOT PLUG] Install and configure hot plug"
import_role:
name: config-hot-plug
when: hot-plug_enabled is defined and hot-plug_enabled

View File

@ -14,4 +14,5 @@
- name: "[CONFIG INSTALL PACKAGES] Install packages"
import_role:
name: config-install-packages
name: config-install-packages
when: packages_enabled is defined and packages_enabled

View File

@ -14,4 +14,5 @@
- name: "[CONFIG LOCALES] Set locales"
import_role:
name: config-locales
name: config-locales
when: locales_enabled is defined and locales_enabled

View File

@ -14,4 +14,5 @@
- name: "[CONFIG MOTD] Config motd"
import_role:
name: config-motd
name: config-motd
when: motd_enabled is defined and motd_enabled

View File

@ -14,4 +14,5 @@
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
import_role:
name: config-nagios-nrpe
name: config-nagios-nrpe
when: nagios-nrpe_enabled is defined and nagios-nrpe_enabled

View File

@ -15,3 +15,4 @@
- name: "[CONFIG NTP] Install and configure ntp"
import_role:
name: config-ntp
when: ntp_enabled is defined and ntp_enabled