main.yml 688 Bytes
Newer Older
Pietsch, Martin's avatar
Pietsch, Martin committed
1
---
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
- name: install rc.d files
  copy:
    src: "{{ _rcfile }}"
    dest: "{{ system_config_directory }}/rc.d/{{ _rcfile }}"
  loop:
    - "kea-ctrl-agent"
    - "kea-dhcp4"
    - "kea-dhcp6"
  loop_control:
    loop_var: _rcfile

- name: set permissions of rc.d files
  file:
    path: "{{ system_config_directory }}/rc.d/{{ _rcfile }}"
    mode: '555'
  loop:
    - "kea-ctrl-agent"
    - "kea-dhcp4"
    - "kea-dhcp6"
  loop_control:
    loop_var: _rcfile

24 25 26 27 28 29 30 31 32 33 34 35
- 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