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
|
- name: Restart service
|
||||||
systemd:
|
service:
|
||||||
name: org.cups.cupsd
|
name: org.cups.cupsd
|
||||||
state: restarted
|
state: restarted
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Install cups
|
- name: Install cups
|
||||||
yum:
|
package:
|
||||||
name: "{{ cups_packages | default(__cups_packages) }}"
|
name: "{{ cups_packages | default(__cups_packages) }}"
|
||||||
state: present
|
state: present
|
||||||
notify: __cupsd_restart
|
notify: __cupsd_restart
|
||||||
|
|
||||||
- name: Install extra packages
|
- name: Install extra packages
|
||||||
yum:
|
package:
|
||||||
name: "{{ cups_packages_extra }}"
|
name: "{{ cups_packages_extra }}"
|
||||||
state: present
|
state: present
|
||||||
notify: __cupsd_restart
|
notify: __cupsd_restart
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Ensure cups service is up and running
|
- name: Ensure cups service is up and running
|
||||||
systemd:
|
service:
|
||||||
name: org.cups.cupsd
|
name: org.cups.cupsd
|
||||||
state: started
|
state: started
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user