blob: 4d214dfc845ba4763ed6a408d6adcbfc8b6fad8e [file] [log] [blame]
Zack Williams70996442020-10-01 22:09:49 -07001---
2# timesheets tasks/Debian.yml
3#
4# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6#
7
8- name: Install Timesheets Prereqs
9 apt:
10 name:
11 - "git"
Zack Williamscb334032020-11-29 22:46:32 -070012 - "ghostscript"
13 - "graphicsmagick"
Zack Williams70996442020-10-01 22:09:49 -070014 state: "present"
15 update_cache: true
16 cache_valid_time: 3600
17
Zack Williams952bc002020-10-04 09:45:59 -070018- name: Create environment config for timesheetsdb service
19 template:
20 src: "default.timesheetsdb.j2"
21 dest: "/etc/default/timesheetsdb"
22 owner: "root"
23 group: "root"
24 mode: "0640"
25 notify:
26 - restart-timesheetsdb
Zack Williams70996442020-10-01 22:09:49 -070027
28- name: Create systemd service unit files for timesheetsdb service
29 template:
30 src: "{{ item }}.j2"
31 dest: "/etc/systemd/system/{{ item }}"
32 owner: "root"
33 group: "root"
34 mode: "0644"
35 with_items:
36 - "timesheetsdb.service"
Zack Williams952bc002020-10-04 09:45:59 -070037 notify:
38 - start-timesheetsdb
39 - restart-timesheetsdb