Browse Source

le playbook update check desormais l'existence du depot squeeze LST et l'ajoute si besoin

master
LecygneNoir 9 years ago
parent
commit
2d1f247112
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      roles/update/tasks/normal.yml

+ 8
- 0
roles/update/tasks/normal.yml View File

@ -1,4 +1,12 @@
---
- name: check LTS repo for squeeze
tags:
- update
- normal
apt_repository: repo='deb http://http.debian.net/debian/ squeeze-lts main' state=present
when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '6'
- name: apt-get update for my Monitoring
shell: apt-get update -qq > /var/lib/apt/update_output 2>&1 && [ ! -s /var/lib/apt/update_output ] && date -u > /var/lib/apt/update_success
tags: update

Loading…
Cancel
Save