mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-09-08 21:27:36 +02:00
build
This commit is contained in:
@@ -15,19 +15,26 @@
|
|||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
upgrade: full
|
upgrade: full
|
||||||
when: ansible_facts.os_family == "Debian" or inventory_hostname in ['rpi5.home.lan']
|
when: >
|
||||||
|
inventory_hostname == 'rpi5.home.lan' or
|
||||||
|
(ansible_facts.os_family is defined and
|
||||||
|
ansible_facts.os_family == 'Debian')
|
||||||
|
|
||||||
- name: Upgrade RHEL / Rocky / Alma / CentOS
|
- name: Upgrade RHEL / Rocky / Alma / CentOS
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: "*"
|
name: "*"
|
||||||
state: latest
|
state: latest
|
||||||
when: ansible_facts.os_family == "RedHat"
|
when: >
|
||||||
|
(ansible_facts.os_family is defined and
|
||||||
|
ansible_facts.os_family == "RedHat")
|
||||||
|
|
||||||
- name: Upgrade SUSE
|
- name: Upgrade SUSE
|
||||||
ansible.builtin.zypper:
|
ansible.builtin.zypper:
|
||||||
name: "*"
|
name: "*"
|
||||||
state: latest
|
state: latest
|
||||||
when: ansible_facts.os_family == "Suse"
|
when: >
|
||||||
|
(ansible_facts.os_family is defined and
|
||||||
|
ansible_facts.os_family == "Suse")
|
||||||
|
|
||||||
- name: Upgrade flatpack
|
- name: Upgrade flatpack
|
||||||
ansible.builtin.command: flatpak update -y
|
ansible.builtin.command: flatpak update -y
|
||||||
|
|||||||
Reference in New Issue
Block a user