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.
Related: ansible#1908
- Loading branch information
Showing
19 changed files
with
97 additions
and
97 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
- name: Importing another playbook | ||
import_playbook: playbook-imported.yml | ||
ansible.builtin.import_playbook: playbook-imported.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# this should generate: unnamed-task: All tasks should be named | ||
- assert: | ||
- ansible.builtin.assert: | ||
fail_msg: tasks in directory with spaces included |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# missing a task name | ||
- assert: | ||
- ansible.builtin.assert: | ||
fail_msg: foo |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
- name: Simple task to include which generates no errors | ||
assert: | ||
ansible.builtin.assert: | ||
that: true |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
# unnamed-task: All tasks should be named | ||
- assert: | ||
- ansible.builtin.assert: | ||
fail_msg: foo |
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 |
---|---|---|
@@ -1,31 +1,31 @@ | ||
- name: synchronize-delegate | ||
synchronize: | ||
ansible.builtin.synchronize: | ||
src: dummy | ||
dest: dummy | ||
delegate_to: localhost | ||
|
||
- name: synchronize-no-same-owner | ||
synchronize: | ||
ansible.builtin.synchronize: | ||
src: dummy | ||
dest: dummy | ||
owner: false | ||
group: false | ||
|
||
- name: unarchive-no-same-owner | ||
unarchive: | ||
ansible.builtin.unarchive: | ||
src: "{{ file }}.tar.gz" | ||
dest: dummy | ||
extra_opts: | ||
- "--no-same-owner" | ||
|
||
- name: unarchive-remote-src | ||
unarchive: | ||
ansible.builtin.unarchive: | ||
src: "{{ file }}.tar.gz" | ||
dest: dummy | ||
extra_opts: | ||
- "--no-same-owner" | ||
|
||
- name: unarchive-unknown-file-ending | ||
unarchive: | ||
ansible.builtin.unarchive: | ||
src: "{{ file }}" | ||
dest: "dummy" |
2 changes: 1 addition & 1 deletion
2
examples/roles/role_with_task_inclusions/tasks/imported_tasks.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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# this task is missing a name (unnamed-task) | ||
- ping: | ||
- ansible.builtin.ping: |
2 changes: 1 addition & 1 deletion
2
examples/roles/role_with_task_inclusions/tasks/included_tasks.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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# this task is missing a name (unnamed-task) | ||
- ping: | ||
- ansible.builtin.ping: |
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
Oops, something went wrong.