1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 10:27:07 +00:00
nk20/ansible/roles/2-nk20/tasks/main.yml
Yohann D'ANELLO 3fea17c555 🐛 Fix Ansible script
2020-07-25 17:36:37 +02:00

30 lines
627 B
YAML

---
- 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
version: beta-soon
force: true
- name: Use default env vars (should be updated!)
template:
src: "env_example"
dest: "/var/www/note_kfet/.env"
mode: 0644
- name: Update permissions for note_kfet dir
file:
path: /var/www/note_kfet
state: directory
recurse: yes
owner: www-data
group: www-data