Update code

This commit is contained in:
Adrien Reslinger 2024-01-12 08:38:59 +01:00
parent 2f0d3caceb
commit d5e368329a
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
2 changed files with 6 additions and 6 deletions

View file

@ -1,2 +1,2 @@
[main] [main]
autoupdate = True autoupdate=True

View file

@ -1,5 +1,7 @@
--- ---
- name: base setup - name: Base setup
tags:
- base
block: block:
- name: Include vars for {{ ansible_os_family }} - name: Include vars for {{ ansible_os_family }}
ansible.builtin.include_vars: "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml" ansible.builtin.include_vars: "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml"
@ -119,7 +121,7 @@
- ansible_os_family == "RedHat" - ansible_os_family == "RedHat"
- ansible_distribution_major_version >= '8' - ansible_distribution_major_version >= '8'
- name: enable a timer for dnf-automatic for RHEL 8 linux family - name: Enable a timer for dnf-automatic for RHEL 8/9 linux family
ansible.builtin.systemd: ansible.builtin.systemd:
name: dnf-automatic.timer name: dnf-automatic.timer
state: started state: started
@ -156,7 +158,7 @@
- ansible_distribution == "RedHat" - ansible_distribution == "RedHat"
- ansible_distribution_major_version >= '8' - ansible_distribution_major_version >= '8'
- name: enable kernel auto update for RHEL 8/9 linux family - name: Enable kernel auto update for RHEL 8/9 linux family
ansible.builtin.systemd: ansible.builtin.systemd:
name: kpatch.service name: kpatch.service
state: started state: started
@ -230,8 +232,6 @@
when: when:
- ansible_os_family == "RedHat" - ansible_os_family == "RedHat"
- ansible_distribution_major_version < '9' - ansible_distribution_major_version < '9'
tags:
- base
- name: Networking - name: Networking