fixup! Gather facts
continuous-integration/drone/push Build is failing Details

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
1 changed files with 7 additions and 1 deletions

View File

@ -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}