Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit 03a0743

Browse files
committed
roles: make sure installed packages are at latest version
Instead of just checkinf if packages are installed we update to the latest version. This is done for all packages except the ones used to build the VDDK plugin. For those we still require just their presence. To override this and return to previous behavior user can set variable `v2v_yum_check: present`. Signed-off-by: Tomáš Golembiovský <[email protected]>
1 parent d88039c commit 03a0743

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ v2v_facts_file: vddk.fact
44
v2v_vddk_override: false
55
v2v_vddk_install_dir: /opt
66
v2v_build_dir: /tmp/nbdkit-plugin
7+
v2v_yum_check: latest

tasks/install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- name: Ensure nbdkit packages are installed
2525
yum:
2626
name: "{{ item }}"
27-
state: present
27+
state: "{{ v2v_yum_check }}"
2828
with_items:
2929
- nbdkit
3030
- nbdkit-plugin-python2
@@ -34,12 +34,12 @@
3434

3535
- name: Install virt-v2v
3636
yum:
37-
state: present
37+
state: "{{ v2v_yum_check }}"
3838
name: virt-v2v
3939

4040
- name: Install oVirt SDK
4141
yum:
42-
state: present
42+
state: "{{ v2v_yum_check }}"
4343
name: python-ovirt-engine-sdk4
4444

4545
- name: Install virt-v2v wrapper

tasks/repositories-centos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
- name: Ensure EPEL repository is installed
33
yum:
4-
state: present
4+
state: "{{ v2v_yum_check }}"
55
name: epel-release

0 commit comments

Comments
 (0)