| --- |
| # bird tasks/main.yml |
| # |
| # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| - name: include OS-specific vars |
| include_vars: "{{ ansible_os_family }}.yml" |
| |
| - name: include OS-specific tasks |
| include_tasks: "{{ item }}" |
| with_first_found: |
| - "{{ ansible_distribution }}_{{ ansible_distribution_version }}.yml" |
| - "{{ ansible_distribution }}.yml" |
| - "{{ ansible_os_family }}.yml" |
| |
| - name: Create BIRD configuration from template |
| template: |
| src: "bird.conf.j2" |
| dest: "/etc/bird/bird.conf" |
| backup: true |
| owner: "{{ bird_username }}" |
| group: "{{ bird_groupname }}" |
| mode: 0640 |
| notify: |
| - reload-bird |