Commit bf57859a authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

Merge branch 'devel' into stable

parents 5f167d8b 87d46826
---
- call_tasks:
- sdm.oor.call_tasks:
from: configure
super: true
- call_tasks:
- sdm.oor.call_tasks:
from: version
- name: create ISC Kea Logger directory
file:
ansible.builtin.file:
path: "{{ kea_logger_directory }}"
state: directory
- name: install ISC Kea DHCPv4 configuration
template:
ansible.builtin.template:
src: "{{ kea_dhcp4_config }}"
dest: "{{ system_config_directory }}/kea/kea-dhcp4.conf"
- name: install ISC Kea DHCPv6 configuration
template:
ansible.builtin.template:
src: "{{ kea_dhcp6_config }}"
dest: "{{ system_config_directory }}/kea/kea-dhcp6.conf"
- name: install ISC Kea control agent configuration
template:
ansible.builtin.template:
src: "{{ kea_control_agent_config }}"
dest: "{{ system_config_directory }}/kea/kea-ctrl-agent.conf"
- name: Workaround to start within a FreeBSD jail container
lineinfile:
ansible.builtin.lineinfile:
path: "{{ system_config_directory }}/rc.d/kea"
regexp: "^# KEYWORD: nojail"
line: "# KEYWORD: shutdown"
when: ansible_distribution == "FreeBSD"
- name: start ISC Kea service
service:
ansible.builtin.service:
name: "{{ _service }}"
state: started
loop: "{{ package_services }}"
......@@ -44,7 +44,7 @@
register: keastart
- name: reload ISC Kea service
service:
ansible.builtin.service:
name: "{{ _service }}"
state: reloaded
loop: "{{ package_services }}"
......
---
- name: create rc.d directory
file:
ansible.builtin.file:
path: "{{ system_config_directory }}/rc.d/"
mode: '755'
state: directory
- name: install rc.d files
copy:
ansible.builtin.copy:
src: "{{ _rcfile }}"
dest: "{{ system_config_directory }}/rc.d/{{ _rcfile }}"
loop:
......@@ -18,7 +18,7 @@
loop_var: _rcfile
- name: set permissions of rc.d files
file:
ansible.builtin.file:
path: "{{ system_config_directory }}/rc.d/{{ _rcfile }}"
mode: '555'
loop:
......@@ -29,13 +29,13 @@
loop_var: _rcfile
- name: call main tasks
call_tasks:
sdm.oor.call_tasks:
super: true
- name: create kea configuration directory
file:
ansible.builtin.file:
path: "{{ system_config_directory }}/kea"
state: directory
- call_tasks:
- sdm.oor.call_tasks:
from: configure
- name: "request Kea version"
command: keactrl --version
ansible.builtin.command: keactrl --version
register: _versdata
- name: "store Kea version"
set_fact:
ansible.builtin.set_fact:
kea_version: "{{ _versdata['stdout_lines'][0] }}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment