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" |
| 12 | state: "present" |
| 13 | update_cache: true |
| 14 | cache_valid_time: 3600 |
| 15 | |
Zack Williams | 952bc00 | 2020-10-04 09:45:59 -0700 | [diff] [blame] | 16 | - name: Create environment config for timesheetsdb service |
| 17 | template: |
| 18 | src: "default.timesheetsdb.j2" |
| 19 | dest: "/etc/default/timesheetsdb" |
| 20 | owner: "root" |
| 21 | group: "root" |
| 22 | mode: "0640" |
| 23 | notify: |
| 24 | - restart-timesheetsdb |
Zack Williams | 7099644 | 2020-10-01 22:09:49 -0700 | [diff] [blame] | 25 | |
| 26 | - name: Create systemd service unit files for timesheetsdb service |
| 27 | template: |
| 28 | src: "{{ item }}.j2" |
| 29 | dest: "/etc/systemd/system/{{ item }}" |
| 30 | owner: "root" |
| 31 | group: "root" |
| 32 | mode: "0644" |
| 33 | with_items: |
| 34 | - "timesheetsdb.service" |
Zack Williams | 952bc00 | 2020-10-04 09:45:59 -0700 | [diff] [blame] | 35 | notify: |
| 36 | - start-timesheetsdb |
| 37 | - restart-timesheetsdb |