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.
name[template]: recommend to use templating as suffix on names (ansib…
…le#2483) * add named templated * added named template play book * chore: auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed code Co-authored-by: vineethreddykaturu <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sorin Sbarnea <[email protected]> Co-authored-by: Sorin Sbarnea <[email protected]>
- Loading branch information
1 parent
ca58469
commit b18a687
Showing
4 changed files
with
36 additions
and
1 deletion.
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,10 @@ | ||
--- | ||
- name: Fixture for src/ansiblelint/rules/name.py::test_name_template( | ||
hosts: all | ||
tasks: | ||
- name: This task {{ sampleService }} name is not correctly templated | ||
ansible.builtin.command: echo "Hello World" | ||
changed_when: false | ||
- name: This task is correctly templated {{ sampleService }} | ||
ansible.builtin.command: echo "Hello World" | ||
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