refactor: use generic ansible modules service and package
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
a3ce09d4f5
commit
8d248341b9
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Restart service
|
||||
systemd:
|
||||
service:
|
||||
name: org.cups.cupsd
|
||||
state: restarted
|
||||
daemon_reload: yes
|
||||
|
@ -1,13 +1,13 @@
|
||||
---
|
||||
- block:
|
||||
- name: Install cups
|
||||
yum:
|
||||
package:
|
||||
name: "{{ cups_packages | default(__cups_packages) }}"
|
||||
state: present
|
||||
notify: __cupsd_restart
|
||||
|
||||
- name: Install extra packages
|
||||
yum:
|
||||
package:
|
||||
name: "{{ cups_packages_extra }}"
|
||||
state: present
|
||||
notify: __cupsd_restart
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Ensure cups service is up and running
|
||||
systemd:
|
||||
service:
|
||||
name: org.cups.cupsd
|
||||
state: started
|
||||
daemon_reload: yes
|
||||
|
Loading…
Reference in New Issue
Block a user