summaryrefslogtreecommitdiff
path: root/roles/dotfiles
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2025-08-09 20:19:59 +0100
committerDmitry Ilvokhin <d@ilvokhin.com>2025-08-09 20:19:59 +0100
commit44b74994706adc125767da1c9ab9f9085449d8ec (patch)
tree91dc9aa505c34145d3251a0735d4f1079d8519ee /roles/dotfiles
parentdb2934a7e9226249c08be173252aec132aa66782 (diff)
downloadinfra-44b74994706adc125767da1c9ab9f9085449d8ec.tar.gz
infra-44b74994706adc125767da1c9ab9f9085449d8ec.tar.bz2
infra-44b74994706adc125767da1c9ab9f9085449d8ec.zip
Setup permissions to template files
Diffstat (limited to 'roles/dotfiles')
-rw-r--r--roles/dotfiles/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml
index 0a6829d..424588d 100644
--- a/roles/dotfiles/tasks/main.yml
+++ b/roles/dotfiles/tasks/main.yml
@@ -162,22 +162,33 @@
path: '{{ dotfiles_homedir }}/.templates'
state: directory
owner: '{{ dotfiles_user }}'
+ group: '{{ dotfiles_group }}'
+ mode: u+rw,g+r,o+r
when: has_cpp.rc == 0 or has_python.rc == 0
- name: Copy template.cpp to home directory
ansible.builtin.copy:
src: misc/dotfiles/templates/template.cpp
dest: '{{ dotfiles_homedir }}/.templates/template.cpp'
+ owner: '{{ dotfiles_user }}'
+ group: '{{ dotfiles_group }}'
+ mode: u+rw,g+r,o+r
when: has_cpp.rc == 0
- name: Copy benchmark.cpp to home directory
ansible.builtin.copy:
src: misc/dotfiles/templates/benchmark.cpp
dest: '{{ dotfiles_homedir }}/.templates/benchmark.cpp'
+ owner: '{{ dotfiles_user }}'
+ group: '{{ dotfiles_group }}'
+ mode: u+rw,g+r,o+r
when: has_cpp.rc == 0
- name: Copy template.py to home directory
ansible.builtin.copy:
src: misc/dotfiles/templates/template.py
dest: '{{ dotfiles_homedir }}/.templates/template.py'
+ owner: '{{ dotfiles_user }}'
+ group: '{{ dotfiles_group }}'
+ mode: u+rw,g+r,o+r
when: has_python.rc == 0