Remove the default `/etc/apt/sources.list` file.
This commit is contained in:
parent
4ed70680e8
commit
0f4a1360d1
|
@ -2,5 +2,6 @@
|
|||
## v1.0
|
||||
|
||||
### Features
|
||||
* Remove the default `/etc/apt/sources.list` file.
|
||||
* Manage Stretch repositories.
|
||||
* Update Apt if any repositories modifications.
|
||||
|
|
|
@ -15,6 +15,7 @@ Manage APT repos, preferences and configuration for IPR's servers.
|
|||
## Role Variables
|
||||
|
||||
* **apt_src_list_manage** : If apt sources list files should be managed [default : `true`].
|
||||
* **apt_purge_src_list_file** : If the default sources.file must be absent [default : `true`].
|
||||
* **apt_stretch_manage** : If Stretch configuration should be managed [default : `true`].
|
||||
|
||||
## Example Playbook
|
||||
|
@ -32,6 +33,7 @@ Manage APT repos, preferences and configuration for IPR's servers.
|
|||
### Sources List
|
||||
|
||||
Manage Debian's sources.list :
|
||||
* Remove the default `/etc/apt/sources.list` file.
|
||||
* Add Stretch repositories.
|
||||
* Update Apt if any repositories modifications.
|
||||
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
# defaults file for apt
|
||||
|
||||
apt_src_list_manage: true
|
||||
apt_purge_src_list_file: true
|
||||
|
||||
apt_stretch_manage: true
|
||||
|
|
|
@ -2,6 +2,14 @@
|
|||
# tasks file for apt
|
||||
|
||||
# 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:
|
||||
|
|
Reference in New Issue