Kapitel 10: Ablauf allgemein

This commit is contained in:
Sven Velt 2024-09-19 10:08:52 +02:00
parent ce14f646e5
commit 8f40ae0047
6 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,32 @@
---
- hosts: localhost
gather_facts: False
pre_tasks:
- debug:
msg: "Schritt 1"
notify: Handler Schritt 1
roles:
- { role: schritt2 }
tasks:
- debug:
msg: "Schritt 3"
notify: Handler Schritt 3
post_tasks:
- debug:
msg: "Schritt 4"
notify: Handler Schritt 4
handlers:
- name: Handler Schritt 1
debug: msg="Handler Schritt 1"
- name: Handler Schritt 3
debug: msg="Handler Schritt 3"
- name: Handler Schritt 4
debug: msg="Handler Schritt 4"

View file

@ -0,0 +1,35 @@
---
- hosts: localhost
gather_facts: False
pre_tasks:
- debug:
msg: "Schritt 1"
changed_when: True
notify: Handler Schritt 1
roles:
- { role: schritt2really }
tasks:
- debug:
msg: "Schritt 3"
changed_when: True
notify: Handler Schritt 3
post_tasks:
- debug:
msg: "Schritt 4"
changed_when: True
notify: Handler Schritt 4
handlers:
- name: Handler Schritt 1
debug: msg="Handler Schritt 1"
- name: Handler Schritt 3
debug: msg="Handler Schritt 3"
- name: Handler Schritt 4
debug: msg="Handler Schritt 4"

View file

@ -0,0 +1,4 @@
---
- name: Handler Schritt 2
debug: msg="Handler Schritt 2"

View file

@ -0,0 +1,3 @@
---
- debug: msg="Schritt 2"
notify: Handler Schritt 2

View file

@ -0,0 +1,4 @@
---
- name: Handler Schritt 2
debug: msg="Handler Schritt 2"

View file

@ -0,0 +1,4 @@
---
- debug: msg="Schritt 2"
changed_when: True
notify: Handler Schritt 2