blob: 23453a69b23c290fc775142322b7152aec4492f9 [file] [log] [blame]
Hyunsun Moonc49a8642020-11-11 14:58:47 -08001---
2# bird tasks/Debian.yml
3#
4# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6
7# Docs: https://launchpad.net/~cz.nic-labs/+archive/ubuntu/bird
8- name: Add BIRD apt repo key
9 apt_key:
10 data: "{{ lookup('file','bird_signing.key') }}"
11 state: "present"
12
13- name: Add BIRD package repo
14 apt_repository:
15 repo: >-
16 deb http://ppa.launchpad.net/cz.nic-labs/bird/{{ ansible_lsb['id'] | lower }}
17 {{ ansible_lsb['codename'] }} main
18 update_cache: true
19
20- name: Install BIRD packages (Debian)
21 apt:
22 name: "{{ bird_package }}"
23 state: "present"
24 update_cache: true
25 cache_valid_time: 3600
26 notify:
27 - start-bird
28
29- name: Enable BIRD Service
30 service:
31 name: "{{ bird_service }}"
32 enabled: true