Ansible/update-ohne-reboot

9 lines
253 B
Plaintext

- hosts: all
become: true
become_user: root
tasks:
- name: apt update auf allen Servern
apt: update_cache=yes force_apt_get=yes cache_valid_time=3600
- name: apt upgrade -y auf allen Servern
apt: upgrade=dist force_apt_get=yes