Permalink
Browse files

Switch main systemd service file to an ansible template

  • Loading branch information...
lovett committed Jan 12, 2019
1 parent 74d9a3c commit 6c499b5e201b81023feb6c1b50a39ed5fc2dc38e

This file was deleted.

Oops, something went wrong.
@@ -84,11 +84,16 @@
path="/etc/medley.conf"
register: global_config_check

- name: Install medley systemd service files
- name: Install primary systemd service
become: true
template:
src: "templates/medley.service.j2"
dest: "/etc/systemd/system/medley.service"

- name: Install supplemental systemd services
become: true
copy: src={{ item }} dest=/etc/systemd/system/
with_items:
- files/medley.service
- files/medley-geodb.service
- files/medley-geodb.timer
- files/medley-db-maintenance.service
@@ -0,0 +1,13 @@
[Unit]
Description=Medley
After=network.target

[Service]
User=medley
Group=medley
WorkingDirectory={{ project_root }}
ExecStart={{ project_root }}/venv/bin/python medley.py
Type=simple

[Install]
WantedBy=multi-user.target

0 comments on commit 6c499b5

Please sign in to comment.