]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix rich version for ansible-lint
authorDmitriy Rabotyagov <noonedeadpunk@ya.ru>
Thu, 13 Jan 2022 16:17:14 +0000 (18:17 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Sat, 29 Jan 2022 07:47:15 +0000 (08:47 +0100)
Ansible-lint prior to v5.3.1 has issue with reach version >=11.0.0.
In order to cherry-pick fix to stable branches we fix rich version.

This should be reverted with ansible-lint version bump.

Signed-off-by: Dmitriy Rabotyagov <noonedeadpunk@ya.ru>
(cherry picked from commit 583e60af84180f0414d67ee52c3ec7cd64ddb4dd)

.github/workflows/ansible-lint.yml

index 78705bb8c7db158ad2d19969669377d45113eb98..5e25c42b7f83301398e91a78b80b452067ab7ede 100644 (file)
@@ -10,8 +10,8 @@ jobs:
         with:
           python-version: '3.8'
           architecture: x64
-      - run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint==4.3.7 netaddr
-      - run: ansible-lint -x 106,204,205,208 -v --force-color ./roles/*/ ./infrastructure-playbooks/*.yml site-container.yml.sample site-container.yml.sample
+      - run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint==4.3.7 'rich>=9.5.1,<11.0.0' netaddr
+      - run: ansible-lint -x 106,204,205,208 -v --force-color ./roles/*/ ./infrastructure-playbooks/*.yml site-container.yml.sample site-container.yml.sample dashboard.yml
       - run: ansible-playbook -i ./tests/functional/all_daemons/hosts site.yml.sample --syntax-check --list-tasks -vv
       - run: ansible-playbook -i ./tests/functional/all_daemons/hosts site-container.yml.sample --syntax-check --list-tasks -vv
       - run: ansible-playbook -i ./tests/functional/all_daemons/hosts infrastructure-playbooks/*.yml --syntax-check --list-tasks -vv