forked from ansible/ansible-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use yaml.load_all for multiple yaml document (ansible#3679)
- Loading branch information
1 parent
ee85ac9
commit c1b41f2
Showing
5 changed files
with
58 additions
and
2 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,23 @@ | ||
--- | ||
- name: First problematic play | ||
hosts: localhost | ||
tasks: | ||
- name: Echo a message | ||
ansible.builtin.shell: echo hello # <-- command-instead-of-shell | ||
changed_when: false | ||
--- | ||
- name: second problematic play # <-- name[casing] | ||
hosts: localhost | ||
tasks: | ||
- name: Remove file (delete file) | ||
ansible.builtin.file: | ||
path: /etc/foo.txt | ||
state: absent | ||
--- | ||
- name: Third problematic play | ||
hosts: localhost | ||
tasks: | ||
- name: Remove file (delete file) | ||
file: # <-- fqcn[action-core] | ||
path: /etc/foo.txt | ||
state: absent |
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,23 @@ | ||
--- | ||
- name: First problematic play | ||
hosts: localhost | ||
tasks: | ||
- name: Echo a message | ||
ansible.builtin.shell: echo hello # <-- command-instead-of-shell | ||
changed_when: false | ||
--- | ||
- name: second problematic play # <-- name[casing] | ||
hosts: localhost | ||
tasks: | ||
- name: Remove file (delete file) | ||
ansible.builtin.file: | ||
path: /etc/foo.txt | ||
state: absent | ||
--- | ||
- name: Third problematic play | ||
hosts: localhost | ||
tasks: | ||
- name: Remove file (delete file) | ||
file: # <-- fqcn[action-core] | ||
path: /etc/foo.txt | ||
state: absent |
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