rougail-tutorials/Ansible/asserts/display.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

21 lines
721 B
YAML

- name: Display variable env_proxy_all.host
ansible.builtin.debug:
var: env_proxy_all.host
- name: Display variable env_proxy_all.port
ansible.builtin.debug:
var: env_proxy_all.port
- name: Display variable env_proxy_all.no_proxy
ansible.builtin.debug:
var: env_proxy_all.no_proxy
- name: Display variable env_srep_all.apero_user
ansible.builtin.debug:
var: env_srep_all.apero_user
- name: Display variable env_srep_all.apero_password
ansible.builtin.debug:
var: env_srep_all.apero_password
- name: Display variable env_nfs_all.configure
ansible.builtin.debug:
var: env_nfs_all.configure
- name: Display variable env_nfs_all.server
ansible.builtin.debug:
var: env_nfs_all.server