Install netaddr as dependency of ansible ipaddr/ipwrap filter
Currently there is no installation procedure for netaddr package on ansible controller. The absence of this package causes apache-wsgi-sushy-emulator or apache-file-exchanger tasks to fail. There is need to manually install it according to ansible docs [1]. [1] https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters_ipaddr.html Change-Id: I29fa7086ea637859655e0021a3fcbe4282fe09ae Relates-To: #239 Closes: #239 Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
This commit is contained in:
parent
b93fd561a1
commit
6577d3fc64
@ -34,10 +34,12 @@ envsubst <"${AIRSHIPCTL_WS}/tools/gate/config_template.yaml" > "$PLAYBOOK_CONFIG
|
|||||||
# use new version of ansible, Ubuntu has old one
|
# use new version of ansible, Ubuntu has old one
|
||||||
sudo apt -y install software-properties-common python3-pip
|
sudo apt -y install software-properties-common python3-pip
|
||||||
sudo apt -y --no-install-recommends install docker.io make
|
sudo apt -y --no-install-recommends install docker.io make
|
||||||
|
|
||||||
|
ANSIBLE_PACKAGES="ansible netaddr"
|
||||||
if [[ -z "${http_proxy}" ]]; then
|
if [[ -z "${http_proxy}" ]]; then
|
||||||
sudo pip3 install ansible
|
sudo pip3 install $ANSIBLE_PACKAGES
|
||||||
else
|
else
|
||||||
sudo pip3 --proxy "${http_proxy}" install ansible
|
sudo pip3 --proxy "${http_proxy}" install $ANSIBLE_PACKAGES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "primary ansible_host=localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3" > "$ANSIBLE_HOSTS"
|
echo "primary ansible_host=localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3" > "$ANSIBLE_HOSTS"
|
||||||
|
Loading…
Reference in New Issue
Block a user