try to install rpm from list instead of loop
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-02-10 17:23:13 +01:00
parent 9bc3449de6
commit b37dcde36a
2 changed files with 7 additions and 8 deletions

View File

@ -2,8 +2,8 @@
- block:
- name: Copy cups rpms to destination host
copy:
src: "files/{{ item }}"
dest: "/var/tmp/{{ item }}"
src: "files/{{ item | basename }}"
dest: "{{ item }}"
owner: root
group: root
mode: 0640
@ -11,8 +11,7 @@
- name: Install cups rpms
yum:
name: "/var/tmp/{{ item }}"
name: "{{ item }}"
state: present
loop: "{{ __cups_rpm_files }}"
become: True
become_user: root

View File

@ -1,6 +1,6 @@
---
__cups_rpm_files:
- cups-2.2.10-0.x86_64.rpm
- cups-devel-2.2.10-0.x86_64.rpm
- cups-libs-2.2.10-0.x86_64.rpm
- cups-lpd-2.2.10-0.x86_64.rpm
- /var/tmp/cups-2.2.10-0.x86_64.rpm
- /var/tmp/cups-devel-2.2.10-0.x86_64.rpm
- /var/tmp/cups-libs-2.2.10-0.x86_64.rpm
- /var/tmp/cups-lpd-2.2.10-0.x86_64.rpm