This commit is contained in:
parent
6c48dc25d4
commit
9971989cfc
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user