try to install rpm from list instead of loop
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9bc3449de6
commit
b37dcde36a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user