ansible/roles/www/tasks/calendar.yaml

24 lines
562 B
YAML

---
- name: Install dependencies
ansible.builtin.apt:
name: [ python3-requests, python3-icalendar ]
- name: Clone source
ansible.builtin.git:
repo: https://github.com/bitlair/calendar-parser.git
version: main
dest: /usr/local/src/bitlair-calendar
accept_hostkey: yes
- name: Create user
ansible.builtin.user:
name: bitlair-calendar
home: /var/lib/bitlair-calendar
- name: Install cronjob
ansible.builtin.template:
src: calendar.cron
dest: /etc/cron.d/bitlair-calendar
owner: root
group: root
mode: 0644