diff --git a/ansible/network-connectivity.yml b/ansible/network-connectivity.yml index 797d0f096..2d8d2ccdd 100644 --- a/ansible/network-connectivity.yml +++ b/ansible/network-connectivity.yml @@ -91,5 +91,5 @@ # in the command. Assumption was that this was being evaluated once # for the when clause and then again for the command. Bug? remote_host: "{{ remote_hosts | random(seed=ansible_facts.date_time.iso8601) }}" - remote_ip: "{{ lookup('cached', 'vars', item ~ '_ips')[remote_host] | default('', true) }}" + remote_ip: "{{ lookup('cached', 'vars', item ~ '_ips', default={})[remote_host] | default('', true) }}" mtu: "{{ item | net_mtu }}" diff --git a/releasenotes/notes/fixes-regression-network-connectivity-no-ip-a37a2d97379a93e7.yaml b/releasenotes/notes/fixes-regression-network-connectivity-no-ip-a37a2d97379a93e7.yaml new file mode 100644 index 000000000..c75267ba7 --- /dev/null +++ b/releasenotes/notes/fixes-regression-network-connectivity-no-ip-a37a2d97379a93e7.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes a regression in network connectivity check when using the ``no_ip`` + attribute. `LP#2125560 `__