diff --git a/coreos-config/plays/vps.yaml b/coreos-config/plays/vps.yaml index 7f3222d..2e98d1c 100644 --- a/coreos-config/plays/vps.yaml +++ b/coreos-config/plays/vps.yaml @@ -6,12 +6,18 @@ base_domain: "tobiasmanske.de" pre_tasks: - name: Gather facts from all hosts - setup: {} + ansible.builtin.setup: {} delegate_to: "{{ item }}" + delegate_facts: true when: hostvars[item]['ansible_default_ipv4'] is not defined tags: - always loop: "{{ groups['all'] }}" + - name: Assert a default ipv4 is known + ansible.builtin.assert: + that: hostvars[item]['ansible_default_ipv4'] is defined + quiet: true + loop: "{{ groups['all'] }}" roles: - {role: compose_project, service: traefik, with_fa: true} - {role: compose_project, service: registry}