From 1c1ae9464cb4450d9ef3012d0197c1337a6b0885 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 29 Jul 2026 23:40:23 +0200 Subject: [PATCH] fix(yum.yml): change package state to 'present' for consistency and improve comment clarity --- roles/common/tasks/yum.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/common/tasks/yum.yml b/roles/common/tasks/yum.yml index c8c5d6a..038d706 100644 --- a/roles/common/tasks/yum.yml +++ b/roles/common/tasks/yum.yml @@ -2,9 +2,9 @@ - name: (yum.yml) Install system updates for redhat (centos/fedora) systems ansible.builtin.dnf: name: "*" - state: latest + state: present update_cache: true - #cache_valid_time: 3600 + # cache_valid_time: 3600 when: - ansible_facts.os_family == "RedHat" - ansible_facts.distribution == "CentOS" or ansible_facts.distribution == "Fedora" @@ -14,12 +14,12 @@ - name: Install the EPEL Repository in CentOS 7 ansible.builtin.dnf: name: epel-release - state: latest + state: present when: - ansible_facts.os_family == "RedHat" - ansible_facts.distribution == "CentOS" -# Its more eficient to in +# Its more efficient to install packages in one shot. - name: (yum.yml) Base install CentOS packages (CentOS 7) ansible.builtin.dnf: name: "{{ yum_base_install_centos_7 }}"