add service handler; fix file destination
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-02-10 17:01:51 +01:00
parent 2ef04ac4d2
commit 6b3a8f9741
2 changed files with 11 additions and 2 deletions

View File

@ -1 +1,10 @@
--- ---
- name: Restart service
systemd:
name: cupsd
state: restarted
daemon_reload: yes
enabled: yes
listen: __cupsd_restart
become: True
become_user: root

View File

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