2025-03/extra/changed_when.yml
2025-03-27 14:35:57 +01:00

10 lines
145 B
YAML

---
- hosts: all
gather_facts: no
tasks:
- command: cat /etc/hosts
register: output
changed_when: '"ubu" in output.stdout'