need python-netaddr in docker target containers for debops

This commit is contained in:
Steven Robertson 2020-10-25 16:33:14 -07:00
parent 9e17c98f3f
commit db5e7032c8
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,6 @@ ci_lib.run_batches([
],
[
'docker pull %s' % (ci_lib.image_for_distro('debian'),),
'sudo apt-get update && sudo apt-get install --no-install-recommends python-netaddr',
],
])

View File

@ -64,6 +64,9 @@ with ci_lib.Fold('job_setup'):
print('---')
print()
print("Setting up python-netaddr...")
ci_lib.run('ansible all -i {} -m apt -a "name=python-netaddr state=present" --become'.format(inventory_path))
# Now we have real host key checking, we need to turn it off
os.environ['ANSIBLE_HOST_KEY_CHECKING'] = 'False'