Kapitel 02: Playbook
This commit is contained in:
parent
3d4a1312a9
commit
5b5da64d11
13
02/minimal.yml
Normal file
13
02/minimal.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- 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
|
||||
|
||||
- name: 'Ausgabe von "/etc/issue"'
|
||||
ansible.builtin.command: cat /etc/issue
|
||||
|
5
02/ping.yml
Normal file
5
02/ping.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
tasks:
|
||||
- ping:
|
||||
|
6
02/ping_sauber.yml
Normal file
6
02/ping_sauber.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: Pinge localhost
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- name: Führe Ping aus
|
||||
ansible.builtin.ping:
|
1
02/test.txt
Normal file
1
02/test.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Ich war hier
|
16
02/zwei_plays.yml
Normal file
16
02/zwei_plays.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- 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
|
||||
|
Loading…
Reference in a new issue