add custom systemd unit
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-11-08 12:51:20 +01:00
parent e6ef99639f
commit 1e066fe8d9
3 changed files with 23 additions and 1 deletions

View File

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

View File

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

View File

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