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/main.yml b/tasks/main.yml
index 3e9f150..e46e988 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -8,12 +8,17 @@
include_vars: "{{ ansible_os_family }}.yml"
- name: include OS-specific tasks
- include_tasks: "{{ ansible_os_family }}.yml"
+ 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