[tutorial Ansible 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
df0db70661
commit
6859888e61
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
env_nfs_all:
|
||||
configure: "{{ env_nfs.configure | default(false) }}"
|
||||
server: "{{ env_nfs.server | default('nfs.silique.fr') }}"
|
||||
server: "{{ env_nfs.server | default('') }}"
|
||||
device: "{{ env_nfs.server | default('') }}:/nfs"
|
||||
|
|
Loading…
Reference in a new issue