blob: 4d214dfc845ba4763ed6a408d6adcbfc8b6fad8e [file] [log] [blame]
---
# timesheets tasks/Debian.yml
#
# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
#
- name: Install Timesheets Prereqs
apt:
name:
- "git"
- "ghostscript"
- "graphicsmagick"
state: "present"
update_cache: true
cache_valid_time: 3600
- name: Create environment config for timesheetsdb service
template:
src: "default.timesheetsdb.j2"
dest: "/etc/default/timesheetsdb"
owner: "root"
group: "root"
mode: "0640"
notify:
- restart-timesheetsdb
- name: Create systemd service unit files for timesheetsdb service
template:
src: "{{ item }}.j2"
dest: "/etc/systemd/system/{{ item }}"
owner: "root"
group: "root"
mode: "0644"
with_items:
- "timesheetsdb.service"
notify:
- start-timesheetsdb
- restart-timesheetsdb