ansible-collection-nameserver/roles/knot/tasks/install.yml

25 lines
591 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
- name: start and enable knot
ansible.builtin.service:
name: knot
state: started
enabled: yes