summaryrefslogtreecommitdiff
path: root/test/integration/targets/yum
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/yum')
-rw-r--r--test/integration/targets/yum/tasks/yum.yml23
1 files changed, 6 insertions, 17 deletions
diff --git a/test/integration/targets/yum/tasks/yum.yml b/test/integration/targets/yum/tasks/yum.yml
index 9d5c71447e..32ebbd5ccd 100644
--- a/test/integration/targets/yum/tasks/yum.yml
+++ b/test/integration/targets/yum/tasks/yum.yml
@@ -615,30 +615,19 @@
# setup for testing installing an RPM from url
- set_fact:
- pkg_name: fpaste
+ pkg_name: noarchfake
+ pkg_path: '{{ repodir }}/noarchfake-1.0-1.noarch.rpm'
- name: cleanup
yum:
name: "{{ pkg_name }}"
state: absent
-- set_fact:
- pkg_url: https://s3.amazonaws.com/ansible-ci-files/test/integration/targets/yum/fpaste-0.3.7.4.1-2.el7.noarch.rpm
- when: ansible_python.version.major == 2
-
-- set_fact:
- pkg_url: https://s3.amazonaws.com/ansible-ci-files/test/integration/targets/yum/fpaste-0.3.9.2-1.fc28.noarch.rpm
- when: ansible_python.version.major == 3
# setup end
-- name: download an rpm
- get_url:
- url: "{{ pkg_url }}"
- dest: "/tmp/{{ pkg_name }}.rpm"
-
-- name: install the downloaded rpm
+- name: install a local noarch rpm from file
yum:
- name: "/tmp/{{ pkg_name }}.rpm"
+ name: "{{ pkg_path }}"
state: present
disable_gpg_check: true
register: yum_result
@@ -659,7 +648,7 @@
- name: install the downloaded rpm again
yum:
- name: "/tmp/{{ pkg_name }}.rpm"
+ name: "{{ pkg_path }}"
state: present
register: yum_result
@@ -684,7 +673,7 @@
- name: install from url
yum:
- name: "{{ pkg_url }}"
+ name: "file://{{ pkg_path }}"
state: present
disable_gpg_check: true
register: yum_result