Commit 857a3b67 authored by Pietsch, Martin's avatar Pietsch, Martin

chance variable package_service to package_services

parent d96038c7
- import_role:
name: package.dhcp
tasks_from: configure
- name: install ISC kea DHCPv4 configuration
template:
src: "{{ kea_dhcp4_config }}"
dest: "{{ system_config_directory }}/kea/kea-dhcp4.conf"
- name: install ISC kea DHCPv6 configuration
template:
src: "{{ kea_dhcp6_config }}"
dest: "{{ system_config_directory }}/kea/kea-dhcp6.conf"
- name: install ISC kea control agent configuration
template:
src: "{{ kea_control_agent_config }}"
dest: "{{ system_config_directory }}/kea/kea-control-agent.conf"
- name: start kea
service:
name: "{{ service }}"
state: started
loop: "{{ package_services[os.distribution | lower()] }}"
loop_control:
loop_var: service
register: keastart
- name: reload kea
service:
name: "{{ service }}"
state: reloaded
loop: "{{ package_services[os.distribution | lower()] }}"
loop_control:
loop_var: service
when: keastart.changed == False
---
# tasks file for package.dhcp.kea/
\ No newline at end of file
- include_role:
name: package.dhcp
- name: create kea configuration directory
file:
path: "{{ system_config_directory }}/kea"
state: directory
- import_role:
name: package.dhcp.kea
tasks_from: configure
......@@ -3,7 +3,7 @@ package_packages: {
"freebsd": ["kea"]
}
package_service: {
package_services: {
"freebsd": ["kea"]
}
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