ansible/upgrade.yml

16 lines
411 B
YAML
Raw Normal View History

2020-05-03 18:45:07 +02:00
#!/usr/bin/env ansible-playbook
2019-02-27 20:32:56 +01:00
---
# 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
2019-02-27 20:32:56 +01:00
cache_valid_time: 86400 # one day
register: apt_result
retries: 3
until: apt_result is succeeded