2024-09/extra/changed_when.yml
2024-09-20 15:59:46 +02:00

10 lines
152 B
YAML

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