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:
@@ -4,11 +4,10 @@
|
|||||||
- name: Install ara deps
|
- name: Install ara deps
|
||||||
become: true
|
become: true
|
||||||
pip:
|
pip:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
|
- pip
|
||||||
|
- setuptools
|
||||||
state: latest
|
state: latest
|
||||||
with_items:
|
|
||||||
- pip
|
|
||||||
- setuptools
|
|
||||||
# TODO(sshnaidm): https://bugs.launchpad.net/tripleo/+bug/1792622
|
# TODO(sshnaidm): https://bugs.launchpad.net/tripleo/+bug/1792622
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
@@ -6,7 +6,9 @@
|
|||||||
# Run atop in background
|
# Run atop in background
|
||||||
- name: Install atop if configured so
|
- name: Install atop if configured so
|
||||||
shell: |
|
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)
|
atop_location=$(repoquery --repoid=osepel --repofrompath=osepel,$NODEPOOL_EPEL_MIRROR/7/x86_64/ --location atop)
|
||||||
{{ ansible_pkg_mgr }} install -y $atop_location
|
{{ ansible_pkg_mgr }} install -y $atop_location
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user