netaddr needs to be on the Ansible controller, not in target nodes

This commit is contained in:
Steven Robertson 2020-10-25 22:27:45 -07:00
parent 4721334dc9
commit 8b845974fb
2 changed files with 1 additions and 5 deletions

View File

@ -10,7 +10,7 @@ ci_lib.run_batches([
# Must be installed separately, as PyNACL indirect requirement causes
# newer version to be installed if done in a single pip run.
'pip install "pycparser<2.19"',
'pip install -qqq debops==2.1.2 ansible==%s' % ci_lib.ANSIBLE_VERSION,
'pip install -qqq debops==2.1.2 netaddr==0.8.0 ansible==%s' % ci_lib.ANSIBLE_VERSION,
],
[
'docker pull %s' % (ci_lib.image_for_distro('debian'),),

View File

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