rougail-tutorials/Ansible/inventory/group_vars/all/nfs.yml
Emmanuel Garette 8efd2ea342 [tutorial Ansible 4.1] conditional disabled variable
NFS configuration
=================

Need could be activated. In this case, we need to add server domain name

---
env_nfs:
  configure: true
  server: another-nfs.silique.fr

Examples of Ops inventory file
==============================

1/ INVALID, only with Rougail:

---
env_nfs:
  configure: false
  server: another-nfs.silique.fr

2/ VALID:

---
env_nfs:
  configure: true
2023-12-18 11:34:35 +01:00

4 lines
134 B
YAML

---
env_nfs_all:
configure: "{{ env_nfs.configure | default(false) }}"
server: "{{ env_nfs.server | default('nfs.silique.fr') }}"