rougail-tutorials/Ansible/asserts/proxy.yml
Emmanuel Garette a19761febe [tutorial Ansible 1.0] a single string variable
Proxy configuration
===================

Add a single "host" variable

---
env_proxy:
  host: proxy.example.net
2023-12-18 11:34:30 +01:00

8 lines
239 B
YAML

---
- name: Test variable env_proxy.host
ansible.builtin.assert:
that:
- env_proxy is defined
- env_proxy.host is defined
- env_proxy.host is string
fail_msg: "La variable n'existe pas ou est de mauvais type !"