26 lines
616 B
YAML
26 lines
616 B
YAML
---
|
|
|
|
- name: install knot repo key
|
|
ansible.builtin.apt_key:
|
|
url: https://deb.knot-dns.cz/apt.gpg
|
|
keyring: /etc/apt/trusted.gpg.d/knot.gpg
|
|
when: knot_repository_install
|
|
|
|
- name: install knot repository
|
|
ansible.builtin.apt_repository:
|
|
repo: "deb {{ knot_repository_url }} {{ knot_repository_distribution }} main"
|
|
filename: knot
|
|
when: knot_repository_install
|
|
|
|
- name: install dependencies
|
|
ansible.builtin.package:
|
|
name:
|
|
- knot
|
|
- knot-dnsutils
|
|
- knot-dnssecutils
|
|
|
|
- name: start and enable knot
|
|
ansible.builtin.service:
|
|
name: knot
|
|
state: started
|
|
enabled: yes
|