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
|
||||
* 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 :
|
||||
* Add Stretch repositories.
|
||||
* Update Apt if any repositories modifications.
|
||||
|
||||
## Development
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# handlers file for apt
|
||||
|
||||
- name: aptitude update
|
||||
apt:
|
||||
update_cache: yes
|
|
@ -11,6 +11,7 @@
|
|||
with_items:
|
||||
- deb
|
||||
- deb-src
|
||||
notify: aptitude update
|
||||
when: apt_src_list_manage and apt_stretch_manage
|
||||
|
||||
- name: CONFIG stretch backports sources.list
|
||||
|
@ -20,4 +21,5 @@
|
|||
update_cache: no
|
||||
with_items:
|
||||
- backports
|
||||
notify: aptitude update
|
||||
when: apt_src_list_manage and apt_stretch_manage
|
||||
|
|
Reference in New Issue