diff --git a/galaxy.yml b/galaxy.yml index 497ac44b94b..a0df3882c4d 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -9,6 +9,8 @@ authors: tags: - infrastructure repository: https://github.com/kubernetes-sigs/kubespray +dependencies: + ansible.utils: '>=2.5.0' build_ignore: - .github - '*.tar.gz' diff --git a/roles/network_plugin/calico/tasks/install.yml b/roles/network_plugin/calico/tasks/install.yml index d371440a3a2..1042916e76d 100644 --- a/roles/network_plugin/calico/tasks/install.yml +++ b/roles/network_plugin/calico/tasks/install.yml @@ -87,7 +87,7 @@ - name: Calico | Ensure that calico_pool_cidr is within kube_pods_subnet when defined assert: - that: "[calico_pool_cidr] | ipaddr(kube_pods_subnet) | length == 1" + that: "[calico_pool_cidr] | ansible.utils.ipaddr(kube_pods_subnet) | length == 1" msg: "{{ calico_pool_cidr }} is not within or equal to {{ kube_pods_subnet }}" when: - inventory_hostname == groups['kube_control_plane'][0]