-
Notifications
You must be signed in to change notification settings - Fork 672
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add key-order test for multiple plays
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
examples/playbooks/transform-key-order-block.transformed.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- name: Testing multiple plays in a playbook | ||
hosts: localhost | ||
tasks: | ||
- name: First block | ||
when: true | ||
block: | ||
- name: Display a message | ||
ansible.builtin.debug: | ||
msg: Hello world! | ||
|
||
- name: A second play | ||
hosts: localhost | ||
tasks: | ||
- name: Second block | ||
when: true # <-- name key should be the second one | ||
block: | ||
- name: Display a message | ||
ansible.builtin.debug: | ||
msg: Hello world! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- name: Testing multiple plays in a playbook | ||
hosts: localhost | ||
tasks: | ||
- name: First block | ||
when: true | ||
block: | ||
- name: Display a message | ||
ansible.builtin.debug: | ||
msg: Hello world! | ||
|
||
- name: A second play | ||
hosts: localhost | ||
tasks: | ||
- name: Second block | ||
block: | ||
- name: Display a message | ||
ansible.builtin.debug: | ||
msg: Hello world! | ||
when: true # <-- name key should be the second one |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters