add custom systemd unit
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
e6ef99639f
commit
1e066fe8d9
|
@ -4,7 +4,7 @@ galaxy_info:
|
|||
# @meta author:value: [xoxys](https://gitea.rknet.org/xoxys)
|
||||
author: xoxys <mail@geeklabor.de>
|
||||
description: Setup cups printserver
|
||||
license: Robert Kaussow
|
||||
license: MIT
|
||||
min_ansible_version: 2.6
|
||||
platforms:
|
||||
- name: EL
|
||||
|
|
|
@ -31,5 +31,11 @@
|
|||
module_arguments: "{{ item.arguments | default(omit) }}"
|
||||
new_module_path: "{{ item.new_module }}"
|
||||
loop: "{{ __pam_config }}"
|
||||
|
||||
- name: Replace default systemd unit
|
||||
template:
|
||||
src: "etc/systemd/system/org.cups.cupsd.service.service.j2"
|
||||
dest: "/etc/systemd/system/org.cups.cupsd.service.service"
|
||||
notify: __cupsd_restart
|
||||
become: True
|
||||
become_user: root
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
#jinja2: lstrip_blocks: True
|
||||
{{ ansible_managed | comment }}
|
||||
[Unit]
|
||||
Description=CUPS Scheduler
|
||||
Documentation=man:cupsd(8)
|
||||
After=sssd.service network.target
|
||||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/cupsd -l
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
Also=org.cups.cupsd.socket org.cups.cupsd.path
|
||||
WantedBy=printer.target
|
Loading…
Reference in New Issue