cellinfo
/
ansible.apt
Archived
2
0
Fork 0

Update Apt if any repositories modifications.

This commit is contained in:
Jeremy Gardais 2017-08-16 15:44:57 +02:00
parent 2bd0538542
commit 4ed70680e8
5 changed files with 39 additions and 0 deletions

29
.travis.yml Normal file
View File

@ -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/

View File

@ -3,3 +3,4 @@
### Features
* Manage Stretch repositories.
* Update Apt if any repositories modifications.

View File

@ -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

6
handlers/main.yml Normal file
View File

@ -0,0 +1,6 @@
---
# handlers file for apt
- name: aptitude update
apt:
update_cache: yes

View File

@ -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