fix permissions

This commit is contained in:
Gabriel Augendre 2024-10-11 19:10:10 +02:00
parent b3706204ce
commit 3bb3d926e1
3 changed files with 4 additions and 6 deletions

View file

@ -17,8 +17,6 @@
url: https://github.com/arp242/goatcounter/releases/download/{{ release.tag }}/goatcounter-{{ release.tag }}-linux-amd64.gz
dest: "{{ dir }}/goatcounter-{{ release.tag }}.gz"
mode: "0644"
owner: gaugendre
group: gaugendre
- name: Uncompress
ansible.builtin.command: gunzip {{ dir }}/goatcounter-{{ release.tag }}.gz
args:
@ -26,7 +24,7 @@
- name: Make executable
ansible.builtin.file:
path: "{{ dir }}/goatcounter-{{ release.tag }}"
mode: "0775"
mode: "0755"
- name: Symlink
ansible.builtin.file:
src: "{{ dir }}/goatcounter-{{ release.tag }}"
@ -37,7 +35,7 @@
ansible.builtin.template:
src: templates/goatcounter.service.j2
dest: /etc/systemd/system/goatcounter.service
mode: "0644"
mode: "0600"
owner: root
group: root
notify:

View file

@ -8,7 +8,7 @@
ansible.builtin.template:
src: templates/lyon-transports.service.j2
dest: /etc/systemd/system/lyon-transports.service
mode: "0644"
mode: "0600"
owner: root
group: root
notify:

View file

@ -8,7 +8,7 @@
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ docker_dir }}/"
mode: preserve
mode: "0600"
with_fileglob:
- files/{{ docker_app_name }}/*
- files/{{ docker_app_name }}/.*