Skip to content

Commit

Permalink
Replace yum module with package module (#7621)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiriproX authored Jun 5, 2021
1 parent d9d29af commit 1739b27
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion contrib/kvm-setup/roles/kvm-setup/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

- name: Install required packages
yum:
package:
name: "{{ item }}"
state: present
with_items:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
- name: Install Prerequisites
yum: name={{ item }} state=present
package: name={{ item }} state=present
with_items:
- "centos-release-gluster{{ glusterfs_default_release }}"

- name: Install Packages
yum: name={{ item }} state=present
package: name={{ item }} state=present
with_items:
- glusterfs-client
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
when: ansible_os_family == "Debian"

- name: install xfs RedHat
yum: name=xfsprogs state=present
package: name=xfsprogs state=present
when: ansible_os_family == "RedHat"

# Format external volumes in xfs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
- name: Install Prerequisites
yum: name={{ item }} state=present
package: name={{ item }} state=present
with_items:
- "centos-release-gluster{{ glusterfs_default_release }}"

- name: Install Packages
yum: name={{ item }} state=present
package: name={{ item }} state=present
with_items:
- glusterfs-server
- glusterfs-client
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

- name: "Install glusterfs mount utils (RedHat)"
become: true
yum:
package:
name: "glusterfs-fuse"
state: "present"
when: "ansible_os_family == 'RedHat'"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: "Install lvm utils (RedHat)"
become: true
yum:
package:
name: "lvm2"
state: "present"
when: "ansible_os_family == 'RedHat'"
Expand Down Expand Up @@ -39,7 +39,7 @@

- name: "Remove lvm utils (RedHat)"
become: true
yum:
package:
name: "lvm2"
state: "absent"
when: "ansible_os_family == 'RedHat' and heketi_remove_lvm"
Expand Down
2 changes: 1 addition & 1 deletion roles/container-engine/docker-storage/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

# https://docs.docker.com/engine/installation/linux/docker-ce/centos/#install-using-the-repository
- name: docker-storage-setup | install lvm2
yum:
package:
name: lvm2
state: present

Expand Down
2 changes: 1 addition & 1 deletion roles/container-engine/docker/tasks/pre-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
- (docker_versioned_pkg[docker_version | string] is search('docker-ce'))

- name: Ensure old versions of Docker are not installed. | RedHat
yum:
package:
name: '{{ docker_remove_packages_yum }}'
state: absent
when:
Expand Down

0 comments on commit 1739b27

Please sign in to comment.