Tutorial Teil 12 "Tagging"
This commit is contained in:
@@ -1,2 +1 @@
|
|||||||
partuuid: "011ad286-01"
|
partuuid: "011ad286-01"
|
||||||
mark: "---"
|
|
||||||
|
|||||||
7
roles/tag_demo/tasks/main.yml
Normal file
7
roles/tag_demo/tasks/main.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
- import_tasks: step1.yml
|
||||||
|
- import_tasks: step2.yml
|
||||||
|
- import_tasks: step3.yml
|
||||||
|
- import_tasks: step4.yml
|
||||||
|
tags: step4
|
||||||
|
|
||||||
4
roles/tag_demo/tasks/step1.yml
Normal file
4
roles/tag_demo/tasks/step1.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
- name: Step 1 wird ausgeführt.
|
||||||
|
debug:
|
||||||
|
msg: "Ausgabe von Step 1"
|
||||||
|
tags: step1
|
||||||
5
roles/tag_demo/tasks/step2.yml
Normal file
5
roles/tag_demo/tasks/step2.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
- name: Step 2 wird ausgeführt.
|
||||||
|
debug:
|
||||||
|
msg: "Ausgabe von Step 2"
|
||||||
|
tags:
|
||||||
|
- step2
|
||||||
4
roles/tag_demo/tasks/step3.yml
Normal file
4
roles/tag_demo/tasks/step3.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
- name: Step 3 wird ausgeführt.
|
||||||
|
debug:
|
||||||
|
msg: "Ausgabe von Step 3"
|
||||||
|
tags: step3
|
||||||
3
roles/tag_demo/tasks/step4.yml
Normal file
3
roles/tag_demo/tasks/step4.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
- name: Step 4 wird ausgeführt.
|
||||||
|
debug:
|
||||||
|
msg: "Ausgabe von Step 4"
|
||||||
6
tag_demo.yml
Normal file
6
tag_demo.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
- hosts: "{{ target }}"
|
||||||
|
gather_facts: false
|
||||||
|
remote_user: pi
|
||||||
|
roles:
|
||||||
|
- tag_demo
|
||||||
|
|
||||||
Reference in New Issue
Block a user