diff --git a/linux-config-autofs-homes.yaml b/linux-config-autofs-homes.yaml index c2e3d5e..87b1268 100644 --- a/linux-config-autofs-homes.yaml +++ b/linux-config-autofs-homes.yaml @@ -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 \ No newline at end of file diff --git a/roles/config-autofs-homes/tasks/main.yaml b/roles/config-autofs-homes/tasks/main.yaml index c8c7582..11ee475 100644 --- a/roles/config-autofs-homes/tasks/main.yaml +++ b/roles/config-autofs-homes/tasks/main.yaml @@ -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