JSON - File Evaluations - Scenarios - Ansible Converted
=========================================================================== =========================================================================== ====Another example of fetching the information package play default let_do := false let_do = true { resource := input[_] resource.hosts == "databases" } Result : { "let_do": true } ============ INPUT FILE [ { "name": "Update web servers", "hosts": "webservers", "remote_user": "root", "tasks": [ { "name": "Ensure apache is at the latest version", "ansible.builtin.yum": { "name": "httpd", "state": "latest" } }, { "name": "Write the apache config file", "ansible.builtin.template": { "src": "/srv/httpd.j2",