diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2020-02-29 14:09:39 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2020-02-29 23:48:24 +0100 |
commit | ca467c55d8bbd633870c1fcaff0677bc2c6eaa9f (patch) | |
tree | 563ec89a5690de52204379dab46556b0926d7a39 /roles/space_server/tasks/bird.yml | |
parent | 543907b4fb61a529f81e0cbe86fd7e7d967b6d60 (diff) | |
download | labitat-ansible-ca467c55d8bbd633870c1fcaff0677bc2c6eaa9f.tar.gz labitat-ansible-ca467c55d8bbd633870c1fcaff0677bc2c6eaa9f.tar.xz labitat-ansible-ca467c55d8bbd633870c1fcaff0677bc2c6eaa9f.zip |
space_server: update to Fedora 31
Diffstat (limited to 'roles/space_server/tasks/bird.yml')
-rw-r--r-- | roles/space_server/tasks/bird.yml | 60 |
1 files changed, 7 insertions, 53 deletions
diff --git a/roles/space_server/tasks/bird.yml b/roles/space_server/tasks/bird.yml index 4ce01eb..c81176d 100644 --- a/roles/space_server/tasks/bird.yml +++ b/roles/space_server/tasks/bird.yml @@ -1,68 +1,22 @@ --- -- name: Make sure /etc/bird exists - file: - dest: '/etc/bird' - state: directory - owner: root - group: root - mode: 0755 -- name: Create bird configuration - copy: - dest: '/etc/bird/' - src: '{{ item }}' - owner: root - group: root - mode: 0644 - with_fileglob: 'bird/*' - loop_control: - label: '/etc/bird/{{ item|basename }}' - notify: - - restart bird - -- name: Create bird.conf and bird6.conf symlinks - file: - path: '/etc/{{ item }}.conf' - src: 'bird/{{ item }}.conf' - state: link - force: yes - with_items: - - bird - - bird6 - -# bird6 wants the link to have a link-local address -# when starting, so wait for it -- name: Create bird6 service drop-in directory - file: - dest: '/etc/systemd/system/bird6.service.d' - state: directory - owner: root - group: root - mode: 0755 -- name: Start bird6 after networks are configured +- name: Create /etc/bird.conf copy: - dest: '/etc/systemd/system/bird6.service.d/wait-online.conf' - src: wait-online.conf + dest: '/etc/bird.conf' + src: 'bird.conf' owner: root group: root mode: 0644 + notify: restart bird -- name: Enable bird and bird6 +- name: Enable bird.service systemd: - name: '{{ item }}.service' + name: 'bird.service' enabled: yes masked: no state: started - with_items: - - bird - - bird6 when: not chroot - name: '- when in chroot' - command: 'systemctl enable {{ item }}.service' - args: - creates: '/etc/systemd/system/multi-user.target.wants/{{ item }}.service' - with_items: - - bird - - bird6 + command: 'systemctl enable bird.service' when: chroot # vim: set ts=2 sw=2 et: |