- create unbound role - create kea_dhcp role - configure unbound and keadhcp on rt1(z9 host)
22 lines
717 B
YAML
22 lines
717 B
YAML
---
|
|
- name: Register isc-kea apt repository
|
|
become: true
|
|
register: kea_dhcp_repo
|
|
when: ansible_facts['distribution'] == "Debian"
|
|
ansible.builtin.deb822_repository:
|
|
name: "isc-{{ kea_dhcp__version_repo }}"
|
|
uris: "https://dl.cloudsmith.io/public/isc/{{ kea_dhcp__version_repo }}/deb/debian"
|
|
suites: any-version
|
|
components: main
|
|
signed_by: "https://dl.cloudsmith.io/public/isc/{{ kea_dhcp__version_repo }}/gpg.key"
|
|
|
|
- name: Install Kea packages
|
|
become: true
|
|
when: ansible_facts['distribution'] == "Debian"
|
|
ansible.builtin.apt:
|
|
name:
|
|
- isc-kea-dhcp4
|
|
- isc-kea-dhcp6
|
|
- isc-kea-ctrl-agent
|
|
- isc-kea-admin
|
|
update_cache: "{{ kea_dhcp_install_repo.changed }}"
|