main.yml 813 Bytes
Newer Older
Pietsch, Martin's avatar
Pietsch, Martin committed
1
---
Pietsch, Martin's avatar
Pietsch, Martin committed
2 3 4 5 6 7 8

- name: create rc.d directory
  file:
    path: "{{ system_config_directory }}/rc.d/"
    mode: '755'
    state: directory

9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
- 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

31 32 33 34 35 36 37 38 39 40 41 42
- 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