Add ansible.utils collectoin requirement

ipaddr filter has been moved from netcommon to utils collection [1]

Based on that we must add that collection to requirements.

[1] db4920ebf6

Change-Id: Id834c484e405a805ef87b260a8fd2ea440096937
This commit is contained in:
Dmitriy Rabotyagov 2022-03-02 14:22:34 +01:00 committed by Jonathan Rosser
parent e676bdc618
commit dfa077659d
4 changed files with 7 additions and 4 deletions

View File

@ -29,6 +29,9 @@ collections:
- name: ansible.netcommon
version: 2.5.1
source: https://galaxy.ansible.com
- name: ansible.utils
version: 2.5.2
source: https://galaxy.ansible.com
- name: openvswitch.openvswitch
version: 2.1.0
source: https://galaxy.ansible.com

View File

@ -35,8 +35,8 @@ bird_bgp_ipv6_peer_ip: >-
and ansible_facts['default_ipv6']['prefix'] is defined %}
{{
((ansible_facts['default_ipv6']['address'] ~ '/' ~ ansible_facts['default_ipv6']['prefix']) |
ipaddr('network') ~ '/' ~ ansible_facts['default_ipv6']['prefix']
) | ipaddr('net') | ipaddr(1) | ipaddr('address')
ansible.utils.ipaddr('network') ~ '/' ~ ansible_facts['default_ipv6']['prefix']
) | ansible.utils.ipaddr('net') | ansible.utils.ipaddr(1) | ansible.utils.ipaddr('address')
}}
{% endif %}

View File

@ -63,7 +63,7 @@
- name: Check your internal network is using private ips
assert:
that:
- internal_lb_vip_address | ipaddr('private')
- internal_lb_vip_address | ansible.utils.ipaddr('private')
# Test openstack_hosts role
- name: Playbook for role testing

View File

@ -17,7 +17,7 @@
is_hci: true
common_single_host_mode: true
monitor_interface: "{{ ('metal' in bootstrap_host_scenarios_expanded) | ternary('br-mgmt', 'eth1') }}" # Management network in the AIO
public_network: "{{ (mgmt_range ~ '.0/' ~ netmask) | ipaddr('net') }}"
public_network: "{{ (mgmt_range ~ '.0/' ~ netmask) | ansible.utils.ipaddr('net') }}"
journal_size: 100
osd_scenario: collocated
ceph_conf_overrides_custom: