-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend key-order key to sort more keys than the name (#2454)
- refactor key ordering to allow us to sort all keys - ensure `block`/`rescue`/`always` are sorted `last`
- Loading branch information
Showing
6 changed files
with
147 additions
and
44 deletions.
There are no files selected for viewing
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
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,30 @@ | ||
--- | ||
- name: Fixture | ||
hosts: localhost | ||
tasks: | ||
- no_log: true | ||
ansible.builtin.command: echo hello | ||
name: Task with no_log on top | ||
changed_when: false | ||
- when: true | ||
name: Task with when on top | ||
ansible.builtin.command: echo hello | ||
changed_when: false | ||
- delegate_to: localhost | ||
name: Delegate_to on top | ||
ansible.builtin.command: echo hello | ||
changed_when: false | ||
- loop: | ||
- 1 | ||
- 2 | ||
name: Loopy | ||
ansible.builtin.command: echo {{ item }} | ||
changed_when: false | ||
- become: true | ||
name: Become first | ||
ansible.builtin.command: echo hello | ||
changed_when: false | ||
- register: test | ||
ansible.builtin.command: echo hello | ||
name: Register first | ||
changed_when: false |
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
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
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
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