dn42-ansible/upgrade.yml

15 lines
388 B
YAML
Raw Permalink Normal View History

2024-11-21 23:57:14 +00:00
- hosts: all
remote_user: root
tasks:
- name: upgrade debian systems
ansible.builtin.apt:
update_cache: yes
upgrade: dist
cache_valid_time: 3600
when: ansible_distribution == 'Debian'
- name: upgrade arch systems
ansible.builtin.pacman:
update_cache: true
upgrade: true
when: ansible_distribution == 'Archlinux'