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 | 36b097b | 2021-08-23 16:11:38 -0700 | [diff] [blame] | 14 | - "libgtk-3-0" |
Zack Williams | 7099644 | 2020-10-01 22:09:49 -0700 | [diff] [blame] | 15 | state: "present" |
| 16 | update_cache: true |
| 17 | cache_valid_time: 3600 |
| 18 | |
Zack Williams | a771dd7 | 2021-05-04 14:28:35 -0700 | [diff] [blame] | 19 | - name: Add Chromium browser (Debian) |
| 20 | when: 'ansible_distribution == "Debian"' |
| 21 | apt: |
| 22 | name: |
| 23 | - "chromium" |
| 24 | state: "present" |
| 25 | update_cache: true |
| 26 | cache_valid_time: 3600 |
| 27 | |
| 28 | - name: Add Chromium browser (Ubuntu) |
| 29 | when: 'ansible_distribution == "Ubuntu"' |
| 30 | apt: |
| 31 | name: |
| 32 | - "chromium-browser" |
| 33 | state: "present" |
| 34 | update_cache: true |
| 35 | cache_valid_time: 3600 |
| 36 | |
Zack Williams | 952bc00 | 2020-10-04 09:45:59 -0700 | [diff] [blame] | 37 | - name: Create environment config for timesheetsdb service |
| 38 | template: |
| 39 | src: "default.timesheetsdb.j2" |
| 40 | dest: "/etc/default/timesheetsdb" |
| 41 | owner: "root" |
| 42 | group: "root" |
| 43 | mode: "0640" |
| 44 | notify: |
| 45 | - restart-timesheetsdb |
Zack Williams | 7099644 | 2020-10-01 22:09:49 -0700 | [diff] [blame] | 46 | |
| 47 | - name: Create systemd service unit files for timesheetsdb service |
| 48 | template: |
| 49 | src: "{{ item }}.j2" |
| 50 | dest: "/etc/systemd/system/{{ item }}" |
| 51 | owner: "root" |
| 52 | group: "root" |
| 53 | mode: "0644" |
| 54 | with_items: |
| 55 | - "timesheetsdb.service" |
Zack Williams | 952bc00 | 2020-10-04 09:45:59 -0700 | [diff] [blame] | 56 | notify: |
| 57 | - start-timesheetsdb |
| 58 | - restart-timesheetsdb |