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