Fix docker_container tests (#549)

* Stop using ansible.netcommon.next_nth_usable.

It requires netaddr to be installed before running the playbook, which isn't the case in CI.
This undoes https://github.com/ansible/ansible/pull/62928/commits/cf61474c3bb2f5d7de6fb0726590de4ddbe4b18b.

* Use own filter to avoid needing netaddr installed.
This commit is contained in:
Felix Fontein 2020-06-21 16:28:58 +02:00 committed by GitHub
commit a6c225e4a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 65 additions and 25 deletions

View file

@ -9,11 +9,6 @@
- debug:
msg: "Using container name prefix {{ cname_prefix }}"
# Install netaddr
- name: Install netaddr for ipaddr filter
pip:
name: netaddr
# Run the tests
- block:
- include_tasks: run-test.yml