| --- |
| # timesheets tasks/Debian.yml |
| # |
| # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| # SPDX-License-Identifier: Apache-2.0 |
| # |
| |
| - name: Install Timesheets Prereqs |
| apt: |
| name: |
| - "git" |
| - "ghostscript" |
| - "graphicsmagick" |
| - "libgtk-3-0" |
| state: "present" |
| update_cache: true |
| cache_valid_time: 3600 |
| |
| - name: Add Chromium browser (Debian) |
| when: 'ansible_distribution == "Debian"' |
| apt: |
| name: |
| - "chromium" |
| state: "present" |
| update_cache: true |
| cache_valid_time: 3600 |
| |
| - name: Add Chromium browser (Ubuntu) |
| when: 'ansible_distribution == "Ubuntu"' |
| apt: |
| name: |
| - "chromium-browser" |
| state: "present" |
| update_cache: true |
| cache_valid_time: 3600 |
| |
| - name: Create environment config for timesheetsdb service |
| template: |
| src: "default.timesheetsdb.j2" |
| dest: "/etc/default/timesheetsdb" |
| owner: "root" |
| group: "root" |
| mode: "0640" |
| notify: |
| - restart-timesheetsdb |
| |
| - name: Create systemd service unit files for timesheetsdb service |
| template: |
| src: "{{ item }}.j2" |
| dest: "/etc/systemd/system/{{ item }}" |
| owner: "root" |
| group: "root" |
| mode: "0644" |
| with_items: |
| - "timesheetsdb.service" |
| notify: |
| - start-timesheetsdb |
| - restart-timesheetsdb |