2024-09/02/zwei_plays.yml
2024-09-16 13:54:35 +02:00

17 lines
318 B
YAML

---
- hosts: localhost
tasks:
- name: "Aufruf von 'id'"
ansible.builtin.command: id
- name: Kopieren einer Datei
ansible.builtin.copy: src=test.txt dest=/tmp/test.txt backup=yes
- hosts: localhost
tasks:
- name: 'Ausgabe von "/etc/issue"'
ansible.builtin.command: cat /etc/issue