infrastructure/ansible/plays/vps.yaml

46 lines
1.7 KiB
YAML
Raw Normal View History

2023-03-30 23:52:40 +02:00
- name: Setup VPS
hosts: host.nc.chaoswg.org
2023-09-06 18:41:59 +02:00
gather_facts: false
2023-03-30 23:52:40 +02:00
vars:
2023-05-05 23:53:56 +02:00
state: running
2023-05-05 22:44:28 +02:00
base_domain: "tobiasmanske.de"
2023-09-06 18:41:59 +02:00
pre_tasks:
- name: Gather facts from all hosts
2023-09-13 05:26:30 +02:00
ansible.builtin.setup: {}
2023-09-06 18:41:59 +02:00
delegate_to: "{{ item }}"
2023-09-13 05:26:30 +02:00
delegate_facts: true
2023-09-06 18:41:59 +02:00
when: hostvars[item]['ansible_default_ipv4'] is not defined
tags:
- always
loop: "{{ groups['all'] }}"
2023-09-13 05:26:30 +02:00
- name: Assert a default ipv4 is known
ansible.builtin.assert:
that: hostvars[item]['ansible_default_ipv4'] is defined
quiet: true
loop: "{{ groups['all'] }}"
2023-03-30 23:52:40 +02:00
roles:
- {role: compose_project, service: traefik, with_fa: true}
2023-08-10 14:42:30 +02:00
- {role: compose_project, service: registry}
- {role: compose_project, service: pantalaimon}
2023-04-16 16:10:44 +02:00
- {role: compose_project, service: prometheus}
2023-03-30 23:52:40 +02:00
- {role: compose_project, service: minio}
- {role: compose_project, service: repo_proxy}
- {role: compose_project, service: gitea}
- {role: compose_project, service: gitea-runner}
- {role: compose_project, service: wireguard}
- {role: compose_project, service: hedgedoc}
- {role: compose_project, service: miniflux}
- {role: compose_project, service: matrix}
- {role: compose_project, service: radicale}
- {role: compose_project, service: search}
- {role: compose_project, service: syncthing}
- {role: compose_project, service: blog}
- {role: compose_project, service: linktree}
- {role: compose_project, service: caddy}
- {role: compose_project, service: diun}
2023-10-11 20:19:16 +02:00
- {role: compose_project, service: seafile}
2023-03-30 23:52:40 +02:00
- {role: compose_project, service: watchtower}
2023-04-15 21:43:02 +02:00
- {role: compose_project, service: wkd}
2023-09-06 18:41:59 +02:00
# vim: ft=yaml.ansible