ansible/utils/upgrade.yml
Solal Nathan df8bae6df7
Some checks failed
continuous-integration/drone/push Build is failing
Add utils
2021-02-10 11:02:17 +01:00

15 lines
411 B
YAML
Executable file

#!/usr/bin/env ansible-playbook
---
# 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