Add Debian backports role
This commit is contained in:
parent
9cb3d49678
commit
ce5bc76853
4 changed files with 26 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
7
roles/debian-backports/README.md
Normal file
7
roles/debian-backports/README.md
Normal 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`).
|
||||||
|
|
8
roles/debian-backports/tasks/main.yml
Normal file
8
roles/debian-backports/tasks/main.yml
Normal 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
|
||||||
|
|
10
roles/debian-backports/templates/backports.list
Normal file
10
roles/debian-backports/templates/backports.list
Normal 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
|
||||||
|
|
Loading…
Reference in a new issue