Handle ansible_default_ipv4 not there in tests. (#514)

This commit is contained in:
Felix Fontein
2022-12-01 00:02:02 +01:00
committed by GitHub
parent 166d485216
commit 6e04e1f172
8 changed files with 8 additions and 8 deletions
@@ -23,7 +23,7 @@
- name: Create a swarm cluster
docker_swarm:
state: present
advertise_addr: "{{ansible_default_ipv4.address}}"
advertise_addr: "{{ ansible_default_ipv4.address | default('127.0.0.1') }}"
- name: Get docker_stack_info when docker is running and not stack available
docker_stack_info: