summaryrefslogtreecommitdiffstats
path: root/examples/roles/name_casing
diff options
context:
space:
mode:
Diffstat (limited to 'examples/roles/name_casing')
-rw-r--r--examples/roles/name_casing/tasks/main.transformed.yml15
-rw-r--r--examples/roles/name_casing/tasks/main.yml15
2 files changed, 30 insertions, 0 deletions
diff --git a/examples/roles/name_casing/tasks/main.transformed.yml b/examples/roles/name_casing/tasks/main.transformed.yml
new file mode 100644
index 0000000..74c18ae
--- /dev/null
+++ b/examples/roles/name_casing/tasks/main.transformed.yml
@@ -0,0 +1,15 @@
+---
+- name: Test nested tasks within block and always
+ block:
+ - name: Test1
+ ansible.builtin.debug:
+ msg: Foo
+
+ - name: Test2
+ ansible.builtin.debug:
+ msg: Bar
+
+ always:
+ - name: From always block to be auto fixed as name[casing] scenario
+ ansible.builtin.debug:
+ msg: Baz
diff --git a/examples/roles/name_casing/tasks/main.yml b/examples/roles/name_casing/tasks/main.yml
new file mode 100644
index 0000000..7bf73ff
--- /dev/null
+++ b/examples/roles/name_casing/tasks/main.yml
@@ -0,0 +1,15 @@
+---
+- name: Test nested tasks within block and always
+ block:
+ - name: test1
+ ansible.builtin.debug:
+ msg: Foo
+
+ - name: Test2
+ ansible.builtin.debug:
+ msg: Bar
+
+ always:
+ - name: from always block to be auto fixed as name[casing] scenario
+ ansible.builtin.debug:
+ msg: Baz