Using Variables — Ansible Documentation
docs.ansible.com › playbooks_variablesUsing Variables. Ansible uses variables to manage differences between systems. With Ansible, you can execute tasks and playbooks on multiple different systems with a single command. To represent the variations among those different systems, you can create variables with standard YAML syntax, including lists and dictionaries.
Tests — Ansible Documentation
docs.ansible.com › ansible › latestDec 21, 2021 · Testing if a list value is True . You can use any and all to check if any or all elements in a list are true or not. vars: mylist: - 1 - " { { 3 == 3 }}" - True myotherlist: - False - True tasks: - debug: msg: "all are true!" when: mylist is all - debug: msg: "at least one is true" when: myotherlist is any.