2024-08-02 04:27:30 +00:00
|
|
|
#vi ft: yaml.ansible
|
|
|
|
---
|
|
|
|
- hosts:
|
|
|
|
- dns_ord
|
|
|
|
tags: ["dns"]
|
|
|
|
tasks:
|
|
|
|
- import_tasks: ./tasks/debian.yml
|
|
|
|
- import_tasks: ./tasks/dns.yml
|
2024-08-03 19:05:31 +00:00
|
|
|
- import_tasks: ./tasks/prometheus.yml
|
2024-08-02 04:27:30 +00:00
|
|
|
handlers:
|
2024-08-03 19:05:31 +00:00
|
|
|
- import_tasks: ./handlers/global.yml
|
2024-08-02 04:27:30 +00:00
|
|
|
- hosts: lb_ord
|
|
|
|
tags: ["lb"]
|
|
|
|
tasks:
|
2024-08-03 19:05:31 +00:00
|
|
|
- import_tasks: ./tasks/prometheus.yml
|
2024-08-02 04:27:30 +00:00
|
|
|
- import_tasks: ./tasks/debian.yml
|
2024-08-03 19:05:31 +00:00
|
|
|
- import_tasks: ./tasks/blocky.yml
|
2024-08-02 04:27:30 +00:00
|
|
|
- import_tasks: ./tasks/caddy.yml
|
2024-08-03 19:05:31 +00:00
|
|
|
- import_tasks: ./tasks/dnsdist.yml
|
|
|
|
- import_tasks: ./tasks/lbsite.yml
|
|
|
|
- name: copy caddy config
|
|
|
|
template:
|
|
|
|
src: "{{ playbook_dir }}/files/Caddyfile"
|
|
|
|
dest: "/etc/caddy/Caddyfile"
|
|
|
|
notify: "reload caddy"
|
|
|
|
- name: copy dnsdist service override
|
|
|
|
template:
|
|
|
|
src: "{{ playbook_dir }}/files/dnsdist.service"
|
|
|
|
dest: /etc/systemd/system/dnsdist-public.service
|
|
|
|
notify: "restart dnsdist"
|
|
|
|
- name: copy dnsdist config
|
|
|
|
template:
|
|
|
|
src: "{{ playbook_dir }}/files/dnsdist.conf"
|
|
|
|
dest: "/etc/dnsdist/dnsdist.conf"
|
|
|
|
notify: "restart dnsdist"
|
|
|
|
- name: copy blocky config
|
|
|
|
template:
|
|
|
|
src: "{{ playbook_dir }}/files/blocky.yml"
|
|
|
|
dest: "/etc/blocky/blocky.yml"
|
|
|
|
notify: "restart blocky"
|
2024-08-02 04:27:30 +00:00
|
|
|
handlers:
|
2024-08-03 19:05:31 +00:00
|
|
|
- import_tasks: ./handlers/global.yml
|
|
|
|
|