cellinfo
/
ansible.apt
Archived
2
0
Fork 0
This repository has been archived on 2020-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
ansible.apt/tasks/main.yml

40 lines
1011 B
YAML

---
# tasks file for apt
# Default preferences file
- name: CONFIG default preferences
template:
src: '{{ apt_default_pref_tpl }}'
dest: '{{ apt_default_pref_path }}'
# Sources list
## Purge sources.list file
- name: CONFIG remove sources.list file
file:
path: /etc/apt/sources.list
state: absent
notify: aptitude update
when: apt_purge_src_list_file
## Stretch
- name: CONFIG stretch official sources.list
apt_repository:
repo: "{{ item }} http://httpredir.debian.org/debian/ stretch main contrib non-free"
filename: stretch
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
apt_repository:
repo: "deb http://httpredir.debian.org/debian/ stretch-{{ item }} main contrib non-free"
filename: stretch.bpo
update_cache: no
with_items:
- backports
notify: aptitude update
when: apt_src_list_manage and apt_stretch_manage