hac/ansible/deploy.yml

34 lines
552 B
YAML
Raw Permalink Normal View History

2024-03-24 22:12:56 +01:00
---
- name: Configure base
hosts: all
become: true
roles:
- role: dnf
when: ansible_facts['os_family'] == "RedHat"
- auditd
- fail2ban
- journald
- sshd
- role: timesyncd
when: ansible_facts['os_family'] == "Debian"
- role: ufw
2024-03-24 22:12:56 +01:00
when: ansible_facts['os_family'] == "Ubuntu"
2024-03-24 22:12:56 +01:00
- name: Resolver
hosts: resolver
become: true
roles:
- knot_resolver
2024-04-17 14:58:43 +02:00
- name: DHCP
hosts: kea-dhcp
become: true
roles:
- kea_dhcp
2024-04-18 20:42:26 +02:00
- name: Knot
hosts: dns-authoritative
become: true
roles:
- knot