Update Apt if any repositories modifications.
This commit is contained in:
		
							parent
							
								
									2bd0538542
								
							
						
					
					
						commit
						4ed70680e8
					
				| 
						 | 
					@ -0,0 +1,29 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					language: python
 | 
				
			||||||
 | 
					python: "2.7"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Use the new container infrastructure
 | 
				
			||||||
 | 
					sudo: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install ansible
 | 
				
			||||||
 | 
					addons:
 | 
				
			||||||
 | 
					  apt:
 | 
				
			||||||
 | 
					    packages:
 | 
				
			||||||
 | 
					    - python-pip
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					install:
 | 
				
			||||||
 | 
					  # Install ansible
 | 
				
			||||||
 | 
					  - pip install ansible
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # Check ansible version
 | 
				
			||||||
 | 
					  - ansible --version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # Create ansible.cfg with correct roles_path
 | 
				
			||||||
 | 
					  - printf '[defaults]\nroles_path=../' >ansible.cfg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					script:
 | 
				
			||||||
 | 
					  # Basic role syntax check
 | 
				
			||||||
 | 
					  - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					notifications:
 | 
				
			||||||
 | 
					  webhooks: https://galaxy.ansible.com/api/v1/notifications/
 | 
				
			||||||
| 
						 | 
					@ -3,3 +3,4 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Features
 | 
					### Features
 | 
				
			||||||
* Manage Stretch repositories.
 | 
					* Manage Stretch repositories.
 | 
				
			||||||
 | 
					* Update Apt if any repositories modifications.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -33,6 +33,7 @@ Manage APT repos, preferences and configuration for IPR's servers.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Manage Debian's sources.list :
 | 
					Manage Debian's sources.list :
 | 
				
			||||||
* Add Stretch repositories.
 | 
					* Add Stretch repositories.
 | 
				
			||||||
 | 
					* Update Apt if any repositories modifications.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Development
 | 
					## Development
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					# handlers file for apt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: aptitude update
 | 
				
			||||||
 | 
					  apt:
 | 
				
			||||||
 | 
					    update_cache: yes
 | 
				
			||||||
| 
						 | 
					@ -11,6 +11,7 @@
 | 
				
			||||||
  with_items:
 | 
					  with_items:
 | 
				
			||||||
    - deb
 | 
					    - deb
 | 
				
			||||||
    - deb-src
 | 
					    - deb-src
 | 
				
			||||||
 | 
					  notify: aptitude update
 | 
				
			||||||
  when: apt_src_list_manage and apt_stretch_manage
 | 
					  when: apt_src_list_manage and apt_stretch_manage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: CONFIG stretch backports sources.list
 | 
					- name: CONFIG stretch backports sources.list
 | 
				
			||||||
| 
						 | 
					@ -20,4 +21,5 @@
 | 
				
			||||||
    update_cache: no
 | 
					    update_cache: no
 | 
				
			||||||
  with_items:
 | 
					  with_items:
 | 
				
			||||||
    - backports
 | 
					    - backports
 | 
				
			||||||
 | 
					  notify: aptitude update
 | 
				
			||||||
  when: apt_src_list_manage and apt_stretch_manage
 | 
					  when: apt_src_list_manage and apt_stretch_manage
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue