Made sequence indent consistent

Change-Id: I5ea4232ca4fd6e03d5b5f72eb6704bee84d04ea5
This commit is contained in:
Sorin Sbarnea 2020-05-05 13:32:53 +01:00
parent 263fea0727
commit 4af438d136
10 changed files with 45 additions and 44 deletions

View File

@ -14,7 +14,9 @@ rules:
empty-lines: empty-lines:
max: 1 max: 1
max-end: 2 max-end: 2
indentation: disable indentation:
level: error
indent-sequences: consistent
new-line-at-end-of-file: disable new-line-at-end-of-file: disable
line-length: disable line-length: disable
truthy: false truthy: false

View File

@ -1,27 +1,26 @@
- hosts: all - hosts: all
vars: vars:
tox_molecule_packages: "{{ _tox_molecule_packages | default([]) }}" tox_molecule_packages: "{{ _tox_molecule_packages | default([]) }}"
tasks:
- name: Gather variables for each operating system
include_vars: "{{ item }}"
with_first_found:
- skip: true
files:
- "molecule-vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yaml"
- "molecule-vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yaml"
- "molecule-vars/{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yaml"
- "molecule-vars/{{ ansible_distribution | lower }}.yaml"
- "molecule-vars/{{ ansible_os_family | lower }}-{{ ansible_distribution_version.split('.')[0] }}.yaml"
- "molecule-vars/{{ ansible_os_family | lower }}.yaml"
tags:
- always
- name: Install packages needed by molecule
become: true
package:
name: "{{ tox_molecule_packages }}"
when:
- (tox_molecule_packages | length) > 0
roles: roles:
- role: ensure-docker - role: ensure-docker
tasks:
- name: Gather variables for each operating system
include_vars: "{{ item }}"
with_first_found:
- skip: true
files:
- "molecule-vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yaml"
- "molecule-vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yaml"
- "molecule-vars/{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yaml"
- "molecule-vars/{{ ansible_distribution | lower }}.yaml"
- "molecule-vars/{{ ansible_os_family | lower }}-{{ ansible_distribution_version.split('.')[0] }}.yaml"
- "molecule-vars/{{ ansible_os_family | lower }}.yaml"
tags:
- always
- name: Install packages needed by molecule
become: true
package:
name: "{{ tox_molecule_packages }}"
when:
- (tox_molecule_packages | length) > 0

View File

@ -66,8 +66,8 @@
data: data:
zuul: zuul:
artifacts: artifacts:
- name: ARA report - name: ARA report
url: "{{ ara_report_path }}" url: "{{ ara_report_path }}"
rescue: rescue:
- name: HTML generation rescue - name: HTML generation rescue
debug: debug:
@ -93,5 +93,5 @@
data: data:
zuul: zuul:
artifacts: artifacts:
- name: ARA report - name: ARA report
url: "{{ ara_report_path }}" url: "{{ ara_report_path }}"

View File

@ -65,7 +65,7 @@
- name: Assert buildset registry is defined for buildx - name: Assert buildset registry is defined for buildx
assert: assert:
that: that:
- buildset_registry is defined - buildset_registry is defined
fail_msg: "Building multi-arch images requires a buildset registry" fail_msg: "Building multi-arch images requires a buildset registry"
- name: Set up buildx builders - name: Set up buildx builders

View File

@ -1,11 +1,11 @@
- name: set zypper base package repository (openSUSE Leap) - name: set zypper base package repository (openSUSE Leap)
set_fact: set_fact:
opensuse_repo_baseurl: "{{ package_mirror }}/distribution/leap/$releasever/repo/oss/" opensuse_repo_baseurl: "{{ package_mirror }}/distribution/leap/$releasever/repo/oss/"
when: ansible_distribution is not search("Tumbleweed") when: ansible_distribution is not search("Tumbleweed")
- name: set zypper base package repository (openSUSE Tumbleweed) - name: set zypper base package repository (openSUSE Tumbleweed)
set_fact: set_fact:
opensuse_repo_baseurl: "{{ package_mirror }}/tumbleweed/repo/oss/" opensuse_repo_baseurl: "{{ package_mirror }}/tumbleweed/repo/oss/"
when: ansible_distribution is search("Tumbleweed") when: ansible_distribution is search("Tumbleweed")
- name: Install Suse repository files - name: Install Suse repository files

View File

@ -8,7 +8,7 @@
- find_subunit2html_output.rc == 0 - find_subunit2html_output.rc == 0
- find_subunit2html_output.stdout_lines - find_subunit2html_output.stdout_lines
set_fact: set_fact:
subunit_html_command: "{{ find_subunit2html_output.stdout_lines[0] }}" subunit_html_command: "{{ find_subunit2html_output.stdout_lines[0] }}"
- name: Emit a debug line so we can search logstash for fallback hits - name: Emit a debug line so we can search logstash for fallback hits
debug: debug:

View File

@ -6,7 +6,7 @@
failed_when: false failed_when: false
register: iptables_rules register: iptables_rules
tags: tags:
- skip_ansible_lint - skip_ansible_lint
- name: List current ipv6 rules - name: List current ipv6 rules
become: yes become: yes
@ -16,7 +16,7 @@
failed_when: false failed_when: false
register: ip6tables_rules register: ip6tables_rules
tags: tags:
- skip_ansible_lint - skip_ansible_lint
- name: Configure persistent iptables rules - name: Configure persistent iptables rules
include: "{{ zj_distro_os }}" include: "{{ zj_distro_os }}"

View File

@ -96,7 +96,7 @@
args: args:
chdir: "{{ stage_dir }}/logs" chdir: "{{ stage_dir }}/logs"
tags: tags:
- skip_ansible_lint - skip_ansible_lint
- block: - block:
- name: Discover log files for compression - name: Discover log files for compression
@ -119,6 +119,6 @@
loop_control: loop_control:
loop_var: zj_log_file loop_var: zj_log_file
tags: tags:
- skip_ansible_lint - skip_ansible_lint
when: when:
- stage_compress_logs - stage_compress_logs

View File

@ -16,11 +16,11 @@
# to cover the find-*.sh scripts in the role a bit more. # to cover the find-*.sh scripts in the role a bit more.
- name: Install stestr and subunit-output - name: Install stestr and subunit-output
pip: pip:
name: name:
- stestr>=2.0.0,<2.6.0 - stestr>=2.0.0,<2.6.0
- python-subunit - python-subunit
virtualenv: "{{ zuul_work_dir }}/.tox/utests/" virtualenv: "{{ zuul_work_dir }}/.tox/utests/"
virtualenv_command: '{{ ensure_pip_virtualenv_command }}' virtualenv_command: '{{ ensure_pip_virtualenv_command }}'
- name: Ensure that the test directories exists - name: Ensure that the test directories exists
file: file:

View File

@ -125,11 +125,11 @@
bindep_profile: compile doc bindep_profile: compile doc
run: playbooks/tox/run.yaml run: playbooks/tox/run.yaml
pre-run: pre-run:
- playbooks/tox-docs/pre.yaml - playbooks/tox-docs/pre.yaml
- playbooks/tox/pre.yaml - playbooks/tox/pre.yaml
post-run: post-run:
- playbooks/tox/docs-post.yaml - playbooks/tox/docs-post.yaml
- playbooks/tox/post.yaml - playbooks/tox/post.yaml
success-url: docs/ success-url: docs/
- job: - job: