From df0db706619253e51096eadc77b642ea2a5f68ee Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 18 Dec 2023 11:34:35 +0100 Subject: [PATCH] [tutorial Rougail 4.2] conditional disabled + hidden NFS configuration ================= Need could be activated. In this case, we need to add server domain name Examples of Ops inventory file ============================== 1/ VALID: --- env_nfs: configure: false 2/ INVALID, configure is false but default: env_nfs: server: another-nfs.silique.fr 3/ VALID: --- env_nfs: configure: true 4/ VALID env_nfs: configure: true server: another-nfs.silique.fr --- Rougail/socle/06-nfs.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Rougail/socle/06-nfs.yml b/Rougail/socle/06-nfs.yml index 6bd454d..d2c02d8 100644 --- a/Rougail/socle/06-nfs.yml +++ b/Rougail/socle/06-nfs.yml @@ -20,3 +20,14 @@ env_nfs: {% if not socle.env_nfs.configure %} NFS is disabled {% endif %} + device: + default: + type: jinja + jinja: "{{ socle.env_nfs.server }}:/nfs" + hidden: true + disabled: + type: jinja + jinja: | + {% if not socle.env_nfs.configure %} + NFS is disabled + {% endif %}