48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
#vi ft: yaml.ansible
|
|
---
|
|
- hosts:
|
|
- dns_ord
|
|
tags: ["dns"]
|
|
tasks:
|
|
- import_tasks: ./tasks/debian.yml
|
|
- import_tasks: ./tasks/dns.yml
|
|
- import_tasks: ./tasks/prometheus.yml
|
|
handlers:
|
|
- import_tasks: ./handlers/global.yml
|
|
- hosts: lb_ord
|
|
tags: ["lb"]
|
|
tasks:
|
|
- import_tasks: ./tasks/prometheus.yml
|
|
- import_tasks: ./tasks/debian.yml
|
|
- import_tasks: ./tasks/blocky.yml
|
|
- import_tasks: ./tasks/dnsdist.yml
|
|
- import_tasks: ./tasks/caddy.yml
|
|
- 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"
|
|
handlers:
|
|
- import_tasks: ./handlers/global.yml
|
|
- hosts: lb_ord
|
|
tags: ["lb","website"]
|
|
tasks:
|
|
- import_tasks: ./tasks/lbsite.yml
|
|
- name: copy caddy config
|
|
template:
|
|
src: "{{ playbook_dir }}/files/Caddyfile"
|
|
dest: "/etc/caddy/Caddyfile"
|
|
notify: "reload caddy"
|
|
handlers:
|
|
- import_tasks: ./handlers/global.yml
|