On debian 11 don't use external APT repo
- Change apt gpg key operations to avoid deprecated apt-key command
- Backup config files on changes
- Metadata for galaxy
- Updates for newer ansible-lint
Change-Id: I5f9a75141dd64f867b81c899f1a2c933c51737d6
diff --git a/tasks/Ubuntu_18.04.yml b/tasks/Ubuntu_18.04.yml
new file mode 100644
index 0000000..fcc8664
--- /dev/null
+++ b/tasks/Ubuntu_18.04.yml
@@ -0,0 +1,25 @@
+---
+# bird tasks/Ubuntu_18.04.yml
+#
+# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
+# SPDX-License-Identifier: Apache-2.0
+
+- name: Copy BIRD repo GPG key for Ubuntu 18.04
+ ansible.builtin.copy:
+ src: bird-keyring.gpg
+ dest: /usr/share/keyrings/bird-keyring.gpg
+ owner: root
+ group: root
+ mode: 0644
+
+- name: Add BIRD apt repo for Ubuntu 18.04
+ apt_repository:
+ repo: >-
+ deb [arch=amd64 signed-by=/usr/share/keyrings/bird-keyring.gpg]
+ http://ppa.launchpad.net/cz.nic-labs/bird/{{ ansible_lsb['id'] | lower }}
+ {{ ansible_lsb['codename'] }} main
+ mode: 0644
+ update_cache: true
+
+- name: Continue with Debian tasks
+ include_tasks: "Debian.yml"