- remove role name rule as is included in newer versions
- added .cache folder to git ignore (used by linter)
- enabled optional yamllint run on ansible-lint
- assured repository has a valid root requirements.yml (so linter can make use of it)
- assured that we do not mix playbooks with non playbooks inside same folders
- renamed undocumented "role" argument received by import_role to official "name".
- added mocked roles/modules to avoid linter errors (ideally they should be provided by
requiremetns.yml).
```
requirements.yml is removed from this cherry-pick as it is not needed
here.
Use centos8 image to fix following issue
```
file /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release from install of containers-common-2:1-6.module_el8.6.0+954+963caf36.noarch conflicts with file from package redhat-release-8.2-1.0.el8.x86_64
```
Pin to container-tools:3.0 will fix the issue.
Change-Id: I14b855f8a15afccaf4973e2a612aa7e9eae3bfa5
(cherry picked from commit af40f9ff8eac8ac7ecb2a29344362afb9db21f95)
Reviewed: https:/ /review. opendev. org/c/openstack /tripleo- ansible/ +/825059 /opendev. org/openstack/ tripleo- ansible/ commit/ 549545e78237057 ac4285e926f69d9 cbc47c8d6a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/victoria
commit 549545e78237057 ac4285e926f69d9 cbc47c8d6a
Author: Sorin Sbarnea <email address hidden>
Date: Wed Jan 13 17:11:03 2021 +0000
Set the ansible-lint version to v5.3.2
The ansible-lint version used is v5.0.2. This path increases the version config. yaml
of the ansible-lint on the .pre-commit-
It also includes cherry-pick of https:/ /review. opendev. org/c/openstack /tripleo- ansible/ +/779180
```
Upgrade ansible-lint to 5.0
- remove role name rule as is included in newer versions tns.yml) . s.yml is removed from this cherry-pick as it is not needed
- added .cache folder to git ignore (used by linter)
- enabled optional yamllint run on ansible-lint
- assured repository has a valid root requirements.yml (so linter can make use of it)
- assured that we do not mix playbooks with non playbooks inside same folders
- renamed undocumented "role" argument received by import_role to official "name".
- added mocked roles/modules to avoid linter errors (ideally they should be provided by
requireme
```
requirement
here.
Use centos8 image to fix following issue rpm-gpg/ RPM-GPG- KEY-redhat- release from install of containers- common- 2:1-6.module_ el8.6.0+ 954+963caf36. noarch conflicts with file from package redhat- release- 8.2-1.0. el8.x86_ 64
```
file /etc/pki/
```
Pin to container-tools:3.0 will fix the issue.
Change-Id: I14b855f8a15afc caf4973e2a612aa 7e9eae3bfa5 7ecb2a29344362a fb9db21f95)
(cherry picked from commit af40f9ff8eac8ac
Related-bug: #1956902 6ef4662b473e0fd 03fe97cccf6 9dbfcdb9e3943e8 490f6bbbb3)
Change-Id: I36e1327a2cc3c6
(cherry picked from commit 60ef62e9f21279a
Signed-off-by: Ananya <email address hidden>
Co-authored-by: Chandan Kumar (raukadah) <email address hidden>