Browse Source

new apt-get update

master
theonlydoo 9 years ago
parent
commit
0e97fe3a7f
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      roles/update/tasks/normal.yml

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

@ -1,4 +1,9 @@
---
- 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
when: ansible_distribution == 'Debian'
ignore_errors: yes
- name: apt-get update
tags: normal

Loading…
Cancel
Save