Skip ansible-lint fqcn for module actions and role-name

Add noqa for:
Object of type PosixPath is not JSON serializable

Change-Id: Id6ef88bb8cd16120bf31da679d1129d99f4b9fd8
This commit is contained in:
Michal Nasiadka 2022-10-12 09:41:10 +02:00
parent a8b601dc12
commit b6c68e2bb4
2 changed files with 5 additions and 1 deletions

View File

@ -20,3 +20,7 @@ skip_list:
- fqcn-builtins
# Allow Jinja templating inside task and play names
- name[template]
# FQCNs again, now for module actions
- fqcn[action]
# role name check matching ^*$
- role-name

View File

@ -12,7 +12,7 @@
method: PUT
status_code: 200
return_content: yes
body: "{{ elasticsearch_shard_body | to_json }}"
body: "{{ elasticsearch_shard_body | to_json }}" # noqa jinja[invalid]
body_format: json
delegate_to: "{{ groups['elasticsearch'][0] }}"
run_once: true