refactor: use generic ansible modules service and package
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2021-06-05 15:30:46 +02:00
parent a3ce09d4f5
commit 8d248341b9
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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