ansible/playbooks/apt_upgrade.yml
2024-03-06 09:29:44 +01:00

12 lines
309 B
YAML

- hosts: datacenter
name: Apt udate
become: true
tasks:
- name: Upgrade the OS
ansible.builtin.apt:
upgrade: full
become: true
- name: Upgrade flatpack
ansible.builtin.command: flatpak update -y
become: true
when: inventory_hostname in groups['morefine']