diff --git a/etherpad.yml b/etherpad.yml index 8dda1c9..563aa96 100644 --- a/etherpad.yml +++ b/etherpad.yml @@ -2,5 +2,6 @@ # Install EtherPad on EtherPad containers - hosts: pad.adm.auro.re roles: + - debian-backports - etherpad diff --git a/roles/debian-backports/README.md b/roles/debian-backports/README.md new file mode 100644 index 0000000..8bbc589 --- /dev/null +++ b/roles/debian-backports/README.md @@ -0,0 +1,7 @@ +# Rôle Debian Backports + +Ce rôle Ansible permet de configurer le dépôt backports de Debian. + +Il doit être exécuté en tant que super-utilisateur +(option `-b` pour `--become`). + diff --git a/roles/debian-backports/tasks/main.yml b/roles/debian-backports/tasks/main.yml new file mode 100644 index 0000000..c94c371 --- /dev/null +++ b/roles/debian-backports/tasks/main.yml @@ -0,0 +1,8 @@ +--- +- name: Configure Debian Backports + when: ansible_distribution == 'Debian' + template: + src: 'backports.list' + dest: '/etc/apt/sources.list.d/backports.list' + mode: 0644 + diff --git a/roles/debian-backports/templates/backports.list b/roles/debian-backports/templates/backports.list new file mode 100644 index 0000000..f4ff812 --- /dev/null +++ b/roles/debian-backports/templates/backports.list @@ -0,0 +1,10 @@ +# /etc/apt/sources.list.d/backports.list +# Deployed with Aurore Ansible ! +{# #} +{# Default mirror #} +{% if debian_mirror is not defined %} +{% set debian_mirror = 'http://ftp.fr.debian.org/debian' %} +{% endif %} + +deb {{ debian_mirror }} {{ ansible_distribution_release }}-backports main +