add conditional

This commit is contained in:
Ruben Blanco 2024-02-15 17:42:58 +01:00
parent 0c3e23f781
commit 092fdd1fcb
2 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,11 @@
tasks:
- name: "[CONFIG AUTOFS HOMES] Comprobando si es necesario configurar AUTOFS HOMES"
debug:
msg: "No es necesario configurar AUTOFS HOMES en la máquina"
when: autofs-homes_enabled is not defined or not autofs-homes_enabled
- name: "[CONFIG AUTOFS HOMES] Install and configure AUTOFS HOMES"
import_role:
name: config-autofs-homes

View File

@ -1,5 +1,9 @@
---
- name: "[CONFIG AUTOFS HOMES] Comprobando si es necesario configurar AUTOFS HOMES"
meta: end_host
when: autofs-homes_enabled is not defined or not autofs-homes_enabled
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# install packages nfs-common , autofs , libnfs-utils , autofs-ldap
- name: install packages for autofs