blob: 7e2c5abddd7a0aa15aaf2f74ef7970e3e6abb4fd [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 Williams36b097b2021-08-23 16:11:38 -070014 - "libgtk-3-0"
Zack Williams70996442020-10-01 22:09:49 -070015 state: "present"
16 update_cache: true
17 cache_valid_time: 3600
18
Zack Williamsa771dd72021-05-04 14:28:35 -070019- 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 Williams952bc002020-10-04 09:45:59 -070037- 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 Williams70996442020-10-01 22:09:49 -070046
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 Williams952bc002020-10-04 09:45:59 -070056 notify:
57 - start-timesheetsdb
58 - restart-timesheetsdb