19 lines
459 B
YAML
19 lines
459 B
YAML
|
---
|
||
|
- hosts:
|
||
|
- tn00-debian12
|
||
|
- tn00-alpine3i
|
||
|
|
||
|
gather_facts: no
|
||
|
|
||
|
tasks:
|
||
|
- name: "Gebe CHANGED zurück, wenn /etc/hostname den String 'debian' enthält"
|
||
|
command: cat /etc/hostname
|
||
|
register: output
|
||
|
changed_when: '"debian" in output.stdout'
|
||
|
|
||
|
- name: "Gebe FAILED zurück, wenn /etc/hostname den String 'alpine' enthält"
|
||
|
command: cat /etc/hostname
|
||
|
register: output
|
||
|
failed_when: '"alpine" in output.stdout'
|
||
|
|