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
10 lines
381 B
YAML
10 lines
381 B
YAML
- name: NFS | Assert variables | test env_nfs_all
|
|
ansible.builtin.assert:
|
|
that:
|
|
- env_nfs_all is defined
|
|
- env_nfs_all.configure is defined
|
|
- env_nfs_all.configure is boolean
|
|
- not env_nfs_all.configure or env_nfs.server is defined
|
|
- not env_nfs_all.configure or env_nfs.server is string
|
|
fail_msg:
|
|
- Please configure your NFS manually
|