Add Debian backports role

This commit is contained in:
Alexandre Iooss 2019-02-05 08:31:25 +01:00
parent 9cb3d49678
commit ce5bc76853
4 changed files with 26 additions and 0 deletions

View file

@ -2,5 +2,6 @@
# Install EtherPad on EtherPad containers # Install EtherPad on EtherPad containers
- hosts: pad.adm.auro.re - hosts: pad.adm.auro.re
roles: roles:
- debian-backports
- etherpad - etherpad

View file

@ -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`).

View file

@ -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

View file

@ -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