From 153df0cde87f3c4eb37af32f28452dad5c4a435c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Tue, 22 Aug 2017 10:02:44 +0200 Subject: [PATCH] =?UTF-8?q?Purge=20sources.list=20default=20file=20after?= =?UTF-8?q?=20setting=20up=20all=20new=20repositories=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++++ README.md | 2 +- tasks/repositories.yml | 16 ++++++++-------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cac27cd..3ac8801 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ +## v1.0.2 + +### Fix +* Purge sources.list default file after setting up all new repositories… + ## v1.0.1 ### Fix diff --git a/README.md b/README.md index c15bf2e..884f673 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,8 @@ 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. +* Remove the default `/etc/apt/sources.list` file. * Update Apt if any repositories modifications. ### Preferences diff --git a/tasks/repositories.yml b/tasks/repositories.yml index d2e1c99..29fc7a4 100644 --- a/tasks/repositories.yml +++ b/tasks/repositories.yml @@ -2,14 +2,6 @@ # tasks file for repositories # 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: @@ -32,3 +24,11 @@ notify: aptitude update when: apt_src_list_manage and apt_stretch_manage # }}} + +## 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