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
|
- name: (yum.yml) Install system updates for redhat (centos/fedora) systems
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: "*"
|
name: "*"
|
||||||
state: latest
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
#cache_valid_time: 3600
|
# cache_valid_time: 3600
|
||||||
when:
|
when:
|
||||||
- ansible_facts.os_family == "RedHat"
|
- ansible_facts.os_family == "RedHat"
|
||||||
- ansible_facts.distribution == "CentOS" or ansible_facts.distribution == "Fedora"
|
- ansible_facts.distribution == "CentOS" or ansible_facts.distribution == "Fedora"
|
||||||
@@ -14,12 +14,12 @@
|
|||||||
- name: Install the EPEL Repository in CentOS 7
|
- name: Install the EPEL Repository in CentOS 7
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: epel-release
|
name: epel-release
|
||||||
state: latest
|
state: present
|
||||||
when:
|
when:
|
||||||
- ansible_facts.os_family == "RedHat"
|
- ansible_facts.os_family == "RedHat"
|
||||||
- ansible_facts.distribution == "CentOS"
|
- 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)
|
- name: (yum.yml) Base install CentOS packages (CentOS 7)
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: "{{ yum_base_install_centos_7 }}"
|
name: "{{ yum_base_install_centos_7 }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user