Zack Williams | 7099644 | 2020-10-01 22:09:49 -0700 | [diff] [blame] | 1 | --- |
| 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 Williams | cb33403 | 2020-11-29 22:46:32 -0700 | [diff] [blame^] | 12 | - "ghostscript" |
| 13 | - "graphicsmagick" |
Zack Williams | 7099644 | 2020-10-01 22:09:49 -0700 | [diff] [blame] | 14 | state: "present" |
| 15 | update_cache: true |
| 16 | cache_valid_time: 3600 |
| 17 | |
Zack Williams | 952bc00 | 2020-10-04 09:45:59 -0700 | [diff] [blame] | 18 | - 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 Williams | 7099644 | 2020-10-01 22:09:49 -0700 | [diff] [blame] | 27 | |
| 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 Williams | 952bc00 | 2020-10-04 09:45:59 -0700 | [diff] [blame] | 37 | notify: |
| 38 | - start-timesheetsdb |
| 39 | - restart-timesheetsdb |