ansible-lint: removed skip of 206

- Fixes 206 errors and removed the skip.
- Also replaces revision with latest tag (pushed today)

Bug: https://bugs.launchpad.net/tripleo/+bug/1848512
Change-Id: I69d75ba9de8ab0e91eb45fd4f9febfdb28cdcb3a
This commit is contained in:
Sorin Sbarnea 2019-10-25 10:34:37 +01:00
parent e702a6b97f
commit 1c6b947bf2
24 changed files with 51 additions and 50 deletions

View File

@ -7,7 +7,6 @@ quiet: false
skip_list:
# TODO(ssbarnea): Gradually remove these skips ASAP
- 204 # Lines should be no longer than 160 chars
- 206 # Variables should have spaces before and after: {{ var_name }}
- 303 # sed used in place of template, replace or lineinfile module
- 504 # Do not use 'local_action', use 'delegate_to: localhost'
- 601 # Don't compare to literal True/False

View File

@ -22,7 +22,7 @@ repos:
types: [file, yaml]
entry: yamllint --strict -f parsable
- repo: https://github.com/ansible/ansible-lint
rev: 0523c63f193d65313dcd743686d7fb0623a72ee8
rev: v4.1.1a1
hooks:
- id: ansible-lint
files: \.(yaml|yml)$

View File

@ -50,12 +50,14 @@
- name: Get releases.sh file output
set_fact:
releases_file_output: "{{ lookup('file', '/home/{{ undercloud_user}}/workspace/logs/releases.sh') | replace('export' , ' export') }}"
releases_file_output: |
{{ lookup('file', '/home/{{ undercloud_user }}/workspace/logs/releases.sh') | replace('export' , ' export') }}
when: releases_file_result.stat.exists
- name: Get featureset-override file output
set_fact:
featureset_override_file_output: "{{ lookup('file', '/home/{{ undercloud_user }}/src/opendev.org/openstack/tripleo-ci/featureset-override.yaml') }}"
featureset_override_file_output: |
{{ lookup('file', '/home/{{ undercloud_user }}/src/opendev.org/openstack/tripleo-ci/featureset-override.yaml') }}
when: featureset_override_file.stat.exists
- name: Create the zuul-based launcher-env-setup-playbook from template