main.yml 852 Bytes
Newer Older
Pietsch, Martin's avatar
Pietsch, Martin committed
1
---
Pietsch, Martin's avatar
Pietsch, Martin committed
2
3

- name: create rc.d directory
Richter, Robin's avatar
Richter, Robin committed
4
 ansible.buildin.file:
Pietsch, Martin's avatar
Pietsch, Martin committed
5
6
7
8
    path: "{{ system_config_directory }}/rc.d/"
    mode: '755'
    state: directory

9
10
11
12
13
14
15
16
17
18
19
20
- 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
Richter, Robin's avatar
Richter, Robin committed
21
 ansible.buildin.file:
22
23
24
25
26
27
28
29
30
    path: "{{ system_config_directory }}/rc.d/{{ _rcfile }}"
    mode: '555'
  loop:
    - "kea-ctrl-agent"
    - "kea-dhcp4"
    - "kea-dhcp6"
  loop_control:
    loop_var: _rcfile

Pietsch, Martin's avatar
Pietsch, Martin committed
31
- name: call main tasks
32
 sdm.oor.call_tasks:
Richter, Robin's avatar
Richter, Robin committed
33
    super: true
34
35

- name: create kea configuration directory
Richter, Robin's avatar
Richter, Robin committed
36
 ansible.buildin.file:
37
38
39
    path: "{{ system_config_directory }}/kea"
    state: directory

40
-sdm.oor.call_tasks:
Richter, Robin's avatar
Richter, Robin committed
41
    from: configure