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 |
| 11 | include_tasks: "{{ ansible_os_family }}.yml" |
| 12 | |
| 13 | - name: Create BIRD configuration from template |
| 14 | template: |
| 15 | src: "bird.conf.j2" |
| 16 | dest: "/etc/bird/bird.conf" |
| 17 | owner: "{{ bird_username }}" |
| 18 | group: "{{ bird_groupname }}" |
| 19 | mode: 0640 |
| 20 | notify: |
| 21 | - reload-bird |