aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/radvd.yml
blob: c546d1fadb8ebca7f2bd0e99a9f3272d20646e16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
- name: Install radvd package
  dnf:
    name: radvd
    state: latest
  notify:
    - restart radvd
  tags:
    - packages

- name: Configure radvd
  copy:
    src: radvd/radvd.conf
    dest: '/etc/radvd.conf'
    owner: root
    group: root
    mode: 0644
  notify:
    - restart radvd

- name: Create service drop-in directory
  file:
    dest: '/etc/systemd/system/radvd.service.d'
    state: directory
    owner: root
    group: root
    mode: 0755
- name: Start radvd after networks are configured
  copy:
    src: wait-online.conf
    dest: '/etc/systemd/system/radvd.service.d/wait-online.conf'
    owner: root
    group: root
    mode: 0644

- name: Enable radvd service
  systemd:
    name: radvd.service
    enabled: yes
    masked: no
    state: started
  when: not chroot
- name: '- when in chroot'
  command: systemctl enable radvd.service
  args:
    creates: '/etc/systemd/system/multi-user.target.wants/radvd.service'
  when: chroot

# vim: set ts=2 sw=2 et: