undercloud-setup: fixed two runtime warnings

Non fatal but confusing and avoidable error:
/bin/sh: /etc/ci/mirror_info.sh: No such file or directory

[DEPRECATION WARNING]: Invoking "pip" only once while using a loop via
squash_actions is deprecated. Instead of using a loop to supply multiple items
and specifying `name: "{{ item }}"`, please use `name: ['pip', 'setuptools']`
and remove the loop. This feature will be removed in version 2.11. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg

Change-Id: I1495dd11405613b7ca63e81cfec8c3eead2dbece
This commit is contained in:
Sorin Sbarnea 2019-10-29 10:09:43 +00:00
parent 76e2ea5776
commit 8f3bc3577e
2 changed files with 6 additions and 5 deletions

View File

@ -4,11 +4,10 @@
- name: Install ara deps
become: true
pip:
name: "{{ item }}"
name:
- pip
- setuptools
state: latest
with_items:
- pip
- setuptools
# TODO(sshnaidm): https://bugs.launchpad.net/tripleo/+bug/1792622
ignore_errors: true

View File

@ -6,7 +6,9 @@
# Run atop in background
- name: Install atop if configured so
shell: |
source /etc/ci/mirror_info.sh
if [ -e /etc/ci/mirror_info.sh ]; then
source /etc/ci/mirror_info.sh
fi
atop_location=$(repoquery --repoid=osepel --repofrompath=osepel,$NODEPOOL_EPEL_MIRROR/7/x86_64/ --location atop)
{{ ansible_pkg_mgr }} install -y $atop_location