blob: 23453a69b23c290fc775142322b7152aec4492f9 [file] [log] [blame]
---
# bird tasks/Debian.yml
#
# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
# Docs: https://launchpad.net/~cz.nic-labs/+archive/ubuntu/bird
- name: Add BIRD apt repo key
apt_key:
data: "{{ lookup('file','bird_signing.key') }}"
state: "present"
- name: Add BIRD package repo
apt_repository:
repo: >-
deb http://ppa.launchpad.net/cz.nic-labs/bird/{{ ansible_lsb['id'] | lower }}
{{ ansible_lsb['codename'] }} main
update_cache: true
- name: Install BIRD packages (Debian)
apt:
name: "{{ bird_package }}"
state: "present"
update_cache: true
cache_valid_time: 3600
notify:
- start-bird
- name: Enable BIRD Service
service:
name: "{{ bird_service }}"
enabled: true