Add option to install knot from the upstream cz.nic repository

This commit is contained in:
s3lph 2022-06-13 21:21:46 +02:00
parent 2abd8ccf02
commit 4fe9da8a6d
3 changed files with 17 additions and 1 deletions

View file

@ -7,7 +7,7 @@ namespace: s3lph
name: nameserver
# The version of the collection. Must be compatible with semantic versioning
version: "0.3.2"
version: "0.3.3"
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md

View file

@ -1,5 +1,9 @@
---
knot_repository_install: no
knot_repository_url: https://deb.knot-dns.cz/knot/
knot_repository_distribution: "{{ ansible_distribution_release }}"
knot_server_rundir: /run/knot
knot_server_user: knot
knot_server_group: knot

View file

@ -1,5 +1,17 @@
---
- 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: