ansible/upgrade.yml
Hadrien Patte b55a2ee047
Fix: add a retry statement to remote package tasks
Signed-off-by: Hadrien Patte <hadrien.patte@protonmail.com>
2019-03-03 19:55:51 +01:00

14 lines
379 B
YAML

---
# This is a special playbook to upgrade all selected servers !
# Please always use with --limit myserver.adm.auro.re
# And list updates with --check
- hosts: all
tasks:
- name: Upgrade
apt:
upgrade: dist
update_cache: true
cache_valid_time: 86400 # one day
register: apt_result
retries: 3
until: apt_result is succeeded