fix(yum.yml): change package state to 'present' for consistency and improve comment clarity
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user