ansible-edda/plays/services/system.yml

29 lines
1.0 KiB
YAML
Raw Normal View History

2022-12-12 23:49:20 +01:00
- name: "services : system : asgard"
hosts: "asgard"
tasks:
2022-12-13 00:19:39 +01:00
- name: "system_datasets"
2022-12-12 23:49:20 +01:00
ansible.builtin.include_role:
2022-12-13 00:19:39 +01:00
name: "system_datasets"
2022-12-12 23:49:20 +01:00
apply:
2022-12-13 00:19:39 +01:00
tags: "services:system_datasets"
2022-12-12 23:49:20 +01:00
when:
"'zfs' in group_names"
tags: "always"
- ansible.builtin.import_role:
2022-12-13 00:19:39 +01:00
name: "system_setup"
tags: "services:system_setup"
2022-12-12 23:49:20 +01:00
- name: "set service bridge addresses"
ansible.builtin.set_fact:
services_bridge_gateway: "{{ vpn_bridge_prefix }}.1"
services_addresses:
2022-12-13 00:08:10 +01:00
rproxy: "{{ hostvars.valkyrie.vpn_bridge_prefix }}.2"
www: "{{ hostvars.valkyrie.vpn_bridge_prefix }}.3"
lrproxy: "{{ hostvars.yggdrasil.vpn_bridge_prefix }}.2"
database: "{{ hostvars.yggdrasil.vpn_bridge_prefix }}.3"
cloud: "{{ hostvars.yggdrasil.vpn_bridge_prefix }}.4"
git: "{{ hostvars.yggdrasil.vpn_bridge_prefix }}.5"
notes: "{{ hostvars.yggdrasil.vpn_bridge_prefix }}.6"
2022-12-12 23:49:20 +01:00
tags: "always"