Hyunsun Moon | c49a864 | 2020-11-11 14:58:47 -0800 | [diff] [blame] | 1 | --- |
| 2 | # bird tasks/main.yml |
| 3 | # |
| 4 | # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | |
| 7 | - name: include OS-specific vars |
| 8 | include_vars: "{{ ansible_os_family }}.yml" |
| 9 | |
| 10 | - name: include OS-specific tasks |
Zack Williams | 4761d6f | 2022-03-28 16:42:09 -0700 | [diff] [blame^] | 11 | include_tasks: "{{ item }}" |
| 12 | with_first_found: |
| 13 | - "{{ ansible_distribution }}_{{ ansible_distribution_version }}.yml" |
| 14 | - "{{ ansible_distribution }}.yml" |
| 15 | - "{{ ansible_os_family }}.yml" |
Hyunsun Moon | c49a864 | 2020-11-11 14:58:47 -0800 | [diff] [blame] | 16 | |
| 17 | - name: Create BIRD configuration from template |
| 18 | template: |
| 19 | src: "bird.conf.j2" |
| 20 | dest: "/etc/bird/bird.conf" |
Zack Williams | 4761d6f | 2022-03-28 16:42:09 -0700 | [diff] [blame^] | 21 | backup: true |
Hyunsun Moon | c49a864 | 2020-11-11 14:58:47 -0800 | [diff] [blame] | 22 | owner: "{{ bird_username }}" |
| 23 | group: "{{ bird_groupname }}" |
| 24 | mode: 0640 |
| 25 | notify: |
| 26 | - reload-bird |