aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/bird.yml
blob: 7ce181de70c8922402cc729637b14671b81058f5 (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
---
- name: Create /etc/bird.conf
  copy:
    dest: '/etc/bird.conf'
    src: 'bird.conf'
    owner: root
    group: root
    mode: 0644
    validate: '/usr/sbin/bird -p -c %s'
  notify: reconfigure bird

- name: Enable bird.service
  systemd:
    name: 'bird.service'
    enabled: yes
    masked: no
    state: started
  when: not chroot
- name: '- when in chroot'
  command: 'systemctl enable bird.service'
  when: chroot

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