diff --git a/playbooks/roles/install-ansible/tasks/main.yaml b/playbooks/roles/install-ansible/tasks/main.yaml index c84650eeac..1f62456508 100644 --- a/playbooks/roles/install-ansible/tasks/main.yaml +++ b/playbooks/roles/install-ansible/tasks/main.yaml @@ -4,6 +4,7 @@ - name: Install openstacksdk pip: + state: latest name: openstacksdk - name: Ensure /etc/ansible and /etc/ansible/hosts diff --git a/tox.ini b/tox.ini index 0db4ea645b..bee07450e5 100644 --- a/tox.ini +++ b/tox.ini @@ -19,9 +19,12 @@ commands = python3 {toxinidir}/tools/check_clouds_yaml.py python3 -m unittest playbooks/roles/install-ansible/files/inventory_plugins/test_yamlgroup.py # Ansible Lint Check + # + # ANSIBLE0010: Package installs should not use latest + # We often deploy latest pip packages bash -c "find roles playbooks -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \ - ansible-lint -x ANSIBLE0004 -x ANSIBLE0006 -x ANSIBLE0007 -x ANSIBLE0011 \ - -x ANSIBLE0012 -x ANSIBLE0013 -x ANSIBLE0015" + ansible-lint -x ANSIBLE0004 -x ANSIBLE0006 -x ANSIBLE0007 -x ANSIBLE0010 \ + -x ANSIBLE0011 -x ANSIBLE0012 -x ANSIBLE0013 -x ANSIBLE0015" [testenv:venv] commands = {posargs}