2020-07-15 09:27:11 +02:00
|
|
|
---
|
|
|
|
- name: Create note_kfet dir with good permissions
|
|
|
|
file:
|
|
|
|
path: /var/www/note_kfet
|
|
|
|
state: directory
|
|
|
|
owner: www-data
|
|
|
|
group: www-data
|
|
|
|
mode: u=rwx,g=rwxs,o=rx
|
|
|
|
|
|
|
|
- name: Clone Note Kfet
|
|
|
|
git:
|
|
|
|
repo: https://gitlab.crans.org/bde/nk20.git
|
|
|
|
dest: /var/www/note_kfet
|
2020-08-05 23:50:30 +02:00
|
|
|
version: beta
|
2020-07-15 10:09:28 +02:00
|
|
|
force: true
|
2020-07-15 09:27:11 +02:00
|
|
|
|
2020-07-15 11:32:08 +02:00
|
|
|
- name: Use default env vars (should be updated!)
|
2020-07-25 17:36:37 +02:00
|
|
|
template:
|
|
|
|
src: "env_example"
|
|
|
|
dest: "/var/www/note_kfet/.env"
|
|
|
|
mode: 0644
|
2020-07-26 12:05:41 +02:00
|
|
|
force: false
|
2020-07-15 11:32:08 +02:00
|
|
|
|
2020-07-15 09:27:11 +02:00
|
|
|
- name: Update permissions for note_kfet dir
|
|
|
|
file:
|
|
|
|
path: /var/www/note_kfet
|
|
|
|
state: directory
|
|
|
|
recurse: yes
|
|
|
|
owner: www-data
|
|
|
|
group: www-data
|
2020-08-05 23:19:30 +02:00
|
|
|
|
|
|
|
- name: Setup cron jobs
|
|
|
|
file:
|
|
|
|
src: /var/www/note_kfet/note.cron
|
|
|
|
dest: /etc/cron.d/note
|
|
|
|
state: link
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
|
2020-08-05 23:50:30 +02:00
|
|
|
- name: Restart cron service
|
2020-08-05 23:19:30 +02:00
|
|
|
systemd:
|
|
|
|
name: cron
|
2020-08-05 23:50:30 +02:00
|
|
|
state: restarted
|
2020-08-06 08:21:05 +02:00
|
|
|
|
|
|
|
- name: Update permissions for the cron file
|
|
|
|
file:
|
|
|
|
path: /var/www/note_kfet/note.cron
|
|
|
|
owner: root
|
|
|
|
group: www-data
|