Purge sources.list default file after setting up all new repositories…
This commit is contained in:
		
							parent
							
								
									33ff5d9804
								
							
						
					
					
						commit
						153df0cde8
					
				| 
						 | 
				
			
			@ -1,4 +1,9 @@
 | 
			
		|||
 | 
			
		||||
## v1.0.2
 | 
			
		||||
 | 
			
		||||
### Fix
 | 
			
		||||
* Purge sources.list default file after setting up all new repositories…
 | 
			
		||||
 | 
			
		||||
## v1.0.1
 | 
			
		||||
 | 
			
		||||
### Fix
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in New Issue