generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ansible-lint reported issues (#9)
- Loading branch information
Showing
6 changed files
with
22 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
exclude_paths: | ||
- changelogs |
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,2 +1,2 @@ | ||
--- | ||
requires_ansible: '>=2.9.10' | ||
requires_ansible: '>=2.12.0' |
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,26 +1,25 @@ | ||
- hosts: localhost | ||
- name: Validate filter | ||
hosts: localhost | ||
gather_facts: false | ||
collections: | ||
- community.molecule | ||
tasks: | ||
|
||
- name: Check if community.molecule.header filter can be used | ||
debug: | ||
ansible.builtin.debug: | ||
msg: "{{ '' | community.molecule.header }}" | ||
|
||
- name: Test community.molecule.header filter result | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
with_header: "{{ '# This is test content\n' | community.molecule.header }}" | ||
|
||
- name: Assert community.molecule.header filter result | ||
assert: | ||
ansible.builtin.assert: | ||
that: | ||
- "'# Molecule managed\n\n# This is test content\n' == with_header" | ||
|
||
- name: Check if community.molecule.to_yaml filter can be used | ||
debug: | ||
ansible.builtin.debug: | ||
msg: "{{ '' | community.molecule.to_yaml }}" | ||
|
||
- name: Check if community.molecule.from_yaml filter can be used | ||
debug: | ||
ansible.builtin.debug: | ||
msg: "{{ '' | community.molecule.from_yaml }}" |