Explicit permissions
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
@ -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 }}'
|
||||
|
Reference in New Issue
Block a user