fixup! Gather facts
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Tobias Manske 2023-09-13 05:26:30 +02:00
parent 6c48dc25d4
commit 9971989cfc
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -6,12 +6,18 @@
base_domain: "tobiasmanske.de" base_domain: "tobiasmanske.de"
pre_tasks: pre_tasks:
- name: Gather facts from all hosts - name: Gather facts from all hosts
setup: {} ansible.builtin.setup: {}
delegate_to: "{{ item }}" delegate_to: "{{ item }}"
delegate_facts: true
when: hostvars[item]['ansible_default_ipv4'] is not defined when: hostvars[item]['ansible_default_ipv4'] is not defined
tags: tags:
- always - always
loop: "{{ groups['all'] }}" 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: roles:
- {role: compose_project, service: traefik, with_fa: true} - {role: compose_project, service: traefik, with_fa: true}
- {role: compose_project, service: registry} - {role: compose_project, service: registry}