Partial address ansible-lint E208

- replaces ignore with a warn, which displays issue without affecting
  the linting outcome (allowing gradual fixing)
- bumps linter to enable the warn_list feature
- fixes a set of issues, others will be fixed in follow-up

Change-Id: I7d6f8c156b06f68f681943e88860930968e7c9f9
This commit is contained in:
Clark Boylan authored and Sorin Sbarnea committed 2020-09-29 10:29:01 +01:00
1 parent cbe1b4a5aa
commit d49893f894
10 files changed
+13 -1

No files matched your search

+1 -1
View File
@@ -2,4 +2,4 @@
# conflict, like ansible version required by ansible-lint.
flake8
yamllint>=1.23.0
ansible-lint>=4.3.0a1,<5
ansible-lint>=4.3.4,<5
@@ -25,3 +25,4 @@
section: main
option: deltarpm
value: 0
mode: 0644
@@ -29,3 +29,4 @@
section: main
option: deltarpm
value: 0
mode: 0644
@@ -25,3 +25,4 @@
section: main
option: deltarpm
value: "false"
mode: 0644
+1
View File
@@ -13,6 +13,7 @@
file:
path: "{{ zuul_output_dir }}/{{ zj_output_dir }}"
state: directory
mode: 0755
with_items:
- logs
- artifacts
+1
View File
@@ -13,6 +13,7 @@
file:
path: "{{ zj_output_dir }}"
state: directory
mode: 0755
with_items:
- "{{ log_path }}"
- "{{ zuul.executor.work_root }}/artifacts"
@@ -16,6 +16,7 @@
file:
path: "{{ zuul.executor.work_root }}/artifacts"
state: directory
mode: 0755
delegate_to: localhost
- name: Collect artifacts
+2
View File
@@ -4,6 +4,7 @@
file:
path: "{{ zuul_info_dir }}"
state: directory
mode: 0755
# We don't use the ansible inventory_file variable because it is not defined
# for nodeless job running on the executor directly:
@@ -13,3 +14,4 @@
copy:
src: "{{ zuul.executor.inventory_file }}"
dest: "{{ zuul_info_dir }}"
mode: 0644
@@ -4,6 +4,7 @@
file:
path: "{{ afs_target }}"
state: directory
mode: 0755
- name: Upload contents to AFS
synchronize:
src: "{{ afs_source }}"
+3
View File
@@ -8,6 +8,7 @@
file:
path: "{{ zuul_info_dir }}"
state: directory
mode: 0755
- name: Collect information about the host
setup:
@@ -22,6 +23,7 @@
template:
dest: "{{ zuul_info_dir }}/host-info.{{ validate_host_hostname_sanitized }}.yaml"
src: templates/host-info.j2
mode: 0644
- name: zuul_debug_info block
block:
@@ -37,5 +39,6 @@
template:
dest: "{{ zuul_info_dir }}/zuul-info.{{ validate_host_hostname_sanitized }}.txt"
src: templates/zuul-info.j2
mode: 0644
when: ansible_python_version is version('2.7', '>=')