2024-09/02/zwei_plays.yml

17 lines
318 B
YAML
Raw Normal View History

2024-09-16 11:54:35 +00:00
---
- 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