This commit is contained in:
2024-08-14 01:00:47 +02:00
parent 716534904f
commit 8944f0c4f9
5 changed files with 221 additions and 4 deletions

View File

@ -138,6 +138,16 @@
tags:
- apt-initial-install
- name: (apt.yml) Initial install ubuntu packages (noble)
apt:
name: "{{ apt_initial_install_noble }}"
state: "{{ apt_install_state }}"
when:
- ansible_facts['distribution'] == "Ubuntu"
- ansible_facts['distribution_release'] == "noble"
tags:
- apt-initial-install
# ---
# Microcode
@ -246,21 +256,21 @@
- apt-microcode
- name: (apt.yml) Install CPU microcode for Intel CPU (ubuntu jammy)
- name: (apt.yml) Install CPU microcode for Intel CPU (ubuntu jammy/noble)
apt:
name: "{{ microcode_intel_package }}"
state: present
default_release: "{{ ansible_distribution_release }}"
when:
- ansible_facts['distribution'] == "Ubuntu"
- ansible_facts['distribution_release'] == "jammy"
- ansible_facts['distribution_release'] == "jammy" or ansible_facts['distribution_release'] == "noble"
- ansible_facts['processor']|string is search("Intel")
tags:
- apt-initial-install
- apt-microcode
- name: (apt.yml) Install CPU microcode for Intel AMD (ubuntu jammy)
- name: (apt.yml) Install CPU microcode for Intel AMD (ubuntu jammy/noble)
apt:
name: "{{ microcode_amd_package }}"
state: present
@ -268,7 +278,7 @@
when:
- apt_debian_contrib_nonfree_enable
- ansible_facts['distribution'] == "Ubuntu"
- ansible_facts['distribution_release'] == "jammy"
- ansible_facts['distribution_release'] == "jammy" or ansible_facts['distribution_release'] == "noble"
- ansible_facts['processor']|string is search("AMD")
tags:
- apt-initial-install
@ -360,6 +370,17 @@
tags:
- apt-remove
- name: (apt.yml) Remove unwanted packages Ubuntu noble
apt:
name: "{{ apt_remove_noble }}"
state: absent
purge: "{{ apt_remove_purge }}"
when:
- ansible_facts['distribution'] == "Ubuntu"
- ansible_facts['distribution_release'] == "noble"
tags:
- apt-remove
- name: (apt.yml) autoremove
apt:
autoremove: true