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:
|
- block:
|
||||||
- name: Copy cups rpms to destination host
|
- name: Copy cups rpms to destination host
|
||||||
copy:
|
copy:
|
||||||
src: "files/{{ item }}"
|
src: "files/{{ item | basename }}"
|
||||||
dest: "/var/tmp/{{ item }}"
|
dest: "{{ item }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0640
|
mode: 0640
|
||||||
@ -11,8 +11,7 @@
|
|||||||
|
|
||||||
- name: Install cups rpms
|
- name: Install cups rpms
|
||||||
yum:
|
yum:
|
||||||
name: "/var/tmp/{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ __cups_rpm_files }}"
|
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
__cups_rpm_files:
|
__cups_rpm_files:
|
||||||
- cups-2.2.10-0.x86_64.rpm
|
- /var/tmp/cups-2.2.10-0.x86_64.rpm
|
||||||
- cups-devel-2.2.10-0.x86_64.rpm
|
- /var/tmp/cups-devel-2.2.10-0.x86_64.rpm
|
||||||
- cups-libs-2.2.10-0.x86_64.rpm
|
- /var/tmp/cups-libs-2.2.10-0.x86_64.rpm
|
||||||
- cups-lpd-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