[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
This commit is contained in:
parent
8efd2ea342
commit
df0db70661
1 changed files with 11 additions and 0 deletions
|
@ -20,3 +20,14 @@ env_nfs:
|
||||||
{% if not socle.env_nfs.configure %}
|
{% if not socle.env_nfs.configure %}
|
||||||
NFS is disabled
|
NFS is disabled
|
||||||
{% endif %}
|
{% 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 %}
|
||||||
|
|
Loading…
Reference in a new issue