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

26 lines
591 B
YAML
Raw Normal View History

2020-11-19 00:21:11 +01:00
---
- 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
2021-03-21 03:37:47 +01:00
- name: install dependencies
2021-11-05 12:52:30 +01:00
ansible.builtin.package:
name:
- knot
- knot-dnsutils
2020-11-19 00:21:11 +01:00
2020-11-20 00:54:31 +01:00
- name: start and enable knot
2021-11-05 12:52:30 +01:00
ansible.builtin.service:
2020-11-20 00:54:31 +01:00
name: knot
state: started
enabled: yes