2024-09/extra/changed_when.yml

10 lines
152 B
YAML
Raw Permalink Normal View History

2024-09-20 13:59:46 +00:00
---
- hosts: all
gather_facts: no
tasks:
- command: cat /etc/hosts
register: output
changed_when: '"tn00-cento" in output.stdout'