Explicit permissions

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
2021-03-18 00:25:44 +01:00
parent b0d8cdaf72
commit 57b83cb58e
24 changed files with 121 additions and 39 deletions

View File

@ -8,18 +8,22 @@
register: pkg_result
retries: 3
until: pkg_result is succeeded
become: yes
- name: Clone scripts git repo
git:
repo: '{{ scripts.git }}'
dest: '.local/src/scripts'
owner: '{{ user.name }}'
group: '{{ user.name }}'
umask: 0022
become_user: '{{ user.name }}'
- name: Find scripts
find:
path: '.local/src/scripts'
pattern: "*"
register: scripts
become_user: user.name
- name: Link scripts
file:
@ -28,3 +32,4 @@
state: link
force: yes
with_items: '{{ scripts.files }}'
become_user: '{{ user.name }}'