ansible-lint: Use 'missing-import' instead of '505'

ansible-lint is issuing an warning when using '# noqa 505' instead of
'#noqa missing-import' on playbooks. This patch changes all occurrences
of the tag to use the newer format.
This commit is contained in:
Rafael Guterres Jeffman
2023-02-21 11:26:29 -03:00
parent b30ae1c9b5
commit 0d1e9d3f49
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
tasks:
- name: Include users.json
ansible.builtin.include_vars:
file: users.json # noqa 505
file: users.json # noqa missing-import
- name: Create dict with user names
ansible.builtin.set_fact:
+1 -1
View File
@@ -10,7 +10,7 @@
tasks:
- name: Include users.json
ansible.builtin.include_vars:
file: users.json # noqa 505
file: users.json # noqa missing-import
- name: Users present len:{{ users | length }}
ipauser:
+1 -1
View File
@@ -12,7 +12,7 @@
tasks:
- name: Include users.json
ansible.builtin.include_vars:
file: users.json # noqa 505
file: users.json # noqa missing-import
- name: Size of users slice.
ansible.builtin.debug:
msg: "{{ users | length }}"