cellinfo
/
ansible.apt
Archived
2
0
Fork 0

Add Stretch-Security repository.

This commit is contained in:
Jeremy Gardais 2017-09-12 09:27:34 +02:00
parent 153df0cde8
commit faa5f6f0ed
4 changed files with 23 additions and 2 deletions

View File

@ -1,4 +1,9 @@
## v1.0.x
### Enhancements
* Add Stretch-Security repository.
## v1.0.2 ## v1.0.2
### Fix ### Fix

View File

@ -59,7 +59,7 @@ Manage APT repos, preferences and configuration for IPR's servers.
### Sources List ### Sources List
Manage Debian's sources.list: Manage Debian's sources.list:
* Add Stretch repositories. * Add Stretch repositories (official, security and backports).
* Remove the default `/etc/apt/sources.list` file. * Remove the default `/etc/apt/sources.list` file.
* Update Apt if any repositories modifications. * Update Apt if any repositories modifications.

View File

@ -14,6 +14,17 @@
notify: aptitude update notify: aptitude update
when: apt_src_list_manage and apt_stretch_manage when: apt_src_list_manage and apt_stretch_manage
- name: CONFIG stretch security sources.list
apt_repository:
repo: "{{ item }} http://httpredir.debian.org/debian-security/ stretch/updates main contrib non-free"
filename: stretch.security
update_cache: no
with_items:
- deb
- deb-src
notify: aptitude update
when: apt_src_list_manage and apt_stretch_manage
- name: CONFIG stretch backports sources.list - name: CONFIG stretch backports sources.list
apt_repository: apt_repository:
repo: "deb http://httpredir.debian.org/debian/ stretch-{{ item }} main contrib non-free" repo: "deb http://httpredir.debian.org/debian/ stretch-{{ item }} main contrib non-free"

View File

@ -1,12 +1,17 @@
# {{ ansible_managed }} # {{ ansible_managed }}
{% if apt_stretch_manage %} {% if apt_stretch_manage %}
Explanation: Packages from Stretch Security (Stable)
Package: *
Pin: release o=Debian,a=stable,n=stretch,l=Debian-Security
Pin-Priority: 520
Explanation: Packages from Stretch (Stable) Explanation: Packages from Stretch (Stable)
Package: * Package: *
Pin: release o=Debian,a=stable,n=stretch,l=Debian Pin: release o=Debian,a=stable,n=stretch,l=Debian
Pin-Priority: 510 Pin-Priority: 510
Explanation: Packages from Stretch (Stable) Explanation: Packages from Stretch Backports (Stable)
Package: * Package: *
Pin: release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports Pin: release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports
Pin-Priority: 500 Pin-Priority: 500