Files
ansible-tutorial/roles/gather-facts/tasks/main.yml
2024-03-17 13:37:54 +01:00

11 lines
251 B
YAML

- name: Informationen sammeln
ansible.builtin.debug:
var: ansible_facts
- name: leeres File anlegen
file:
path: /home/pi/testwhen
state: touch
when: (ansible_facts['hostname'] == 'brandine' or ansible_facts['hostname'] == 'kirk')