Add www role
This commit is contained in:
parent
1bab3d478d
commit
03780abf01
12 changed files with 313 additions and 0 deletions
24
roles/www/tasks/calendar.yaml
Normal file
24
roles/www/tasks/calendar.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
- name: Install dependencies
|
||||
apt:
|
||||
name: [ python3-requests, python3-icalendar ]
|
||||
|
||||
- name: Clone source
|
||||
git:
|
||||
repo: https://github.com/bitlair/calendar-parser.git
|
||||
version: main
|
||||
dest: /usr/local/src/bitlair-calendar
|
||||
accept_hostkey: yes
|
||||
|
||||
- name: Create user
|
||||
user:
|
||||
name: bitlair-calendar
|
||||
home: /var/lib/bitlair-calendar
|
||||
|
||||
- name: Install cronjob
|
||||
template:
|
||||
src: calendar.cron
|
||||
dest: /etc/cron.d/bitlair-calendar
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
Loading…
Add table
Add a link
Reference in a new issue