add conditional

This commit is contained in:
Ruben Blanco 2024-02-15 12:37:59 +01:00
parent 25a051430d
commit c452e88322
2 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,11 @@
tasks:
- name: "[CONFIG MOTD] Comprobando si es necesario configurar motd"
debug:
msg: "No es necesario configurar motd en la máquina"
when: motd_enabled is not defined or not motd_enabled
- name: "[CONFIG MOTD] Config motd"
import_role:
name: config-motd

View File

@ -1,3 +1,8 @@
- name: "[CONFIG VIM OPTIONS] Comprobando si es necesario configurar vim options"
meta: end_host
when: vim-options_enabled is not defined or not vim-options_enabled
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Enable VIM options
# step1 - create file vimrc.local