#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/caddy.yml - 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" handlers: - import_tasks: ./handlers/global.yml