From 44b74994706adc125767da1c9ab9f9085449d8ec Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 9 Aug 2025 20:19:59 +0100 Subject: Setup permissions to template files --- roles/dotfiles/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'roles/dotfiles/tasks') 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 -- cgit v1.2.3-70-g09d2