Add option to install knot from the upstream cz.nic repository
This commit is contained in:
parent
2abd8ccf02
commit
4fe9da8a6d
3 changed files with 17 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue