Gather facts
This commit is contained in:
parent
f887ca2fae
commit
78d6bd2c2d
@ -8,6 +8,9 @@
|
|||||||
wait_for_connection:
|
wait_for_connection:
|
||||||
timeout: 300
|
timeout: 300
|
||||||
sleep: 10
|
sleep: 10
|
||||||
|
- name: gather facts
|
||||||
|
ansible.builtin.setup:
|
||||||
|
gather_subset: all
|
||||||
|
|
||||||
- name: Common
|
- name: Common
|
||||||
ansible.builtin.import_playbook: plays/common.yaml
|
ansible.builtin.import_playbook: plays/common.yaml
|
||||||
|
@ -32,7 +32,7 @@ block_ip = [
|
|||||||
|
|
||||||
pass_ip = [
|
pass_ip = [
|
||||||
{% for host in groups['monitoring'] %}
|
{% for host in groups['monitoring'] %}
|
||||||
'{{ hostvars[host].ansible_host }}', # Monitoring
|
'{{ hostvars[host].ansible_default_ipv4.address }}', # Monitoring
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
# '192.168.0.0/16', # IPv4 private network
|
# '192.168.0.0/16', # IPv4 private network
|
||||||
# 'fe80::/10' # IPv6 linklocal / wins over botdetection.ip_limit.filter_link_local
|
# 'fe80::/10' # IPv6 linklocal / wins over botdetection.ip_limit.filter_link_local
|
||||||
|
@ -1,8 +1,17 @@
|
|||||||
- name: Setup VPS
|
- name: Setup VPS
|
||||||
hosts: host.nc.chaoswg.org
|
hosts: host.nc.chaoswg.org
|
||||||
|
gather_facts: false
|
||||||
vars:
|
vars:
|
||||||
state: running
|
state: running
|
||||||
base_domain: "tobiasmanske.de"
|
base_domain: "tobiasmanske.de"
|
||||||
|
pre_tasks:
|
||||||
|
- name: Gather facts from all hosts
|
||||||
|
setup: {}
|
||||||
|
delegate_to: "{{ item }}"
|
||||||
|
when: hostvars[item]['ansible_default_ipv4'] is not defined
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
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}
|
||||||
@ -26,3 +35,5 @@
|
|||||||
- {role: compose_project, service: diun}
|
- {role: compose_project, service: diun}
|
||||||
- {role: compose_project, service: watchtower}
|
- {role: compose_project, service: watchtower}
|
||||||
- {role: compose_project, service: wkd}
|
- {role: compose_project, service: wkd}
|
||||||
|
|
||||||
|
# vim: ft=yaml.ansible
|
||||||
|
Loading…
Reference in New Issue
Block a user