fix playbook file to first create folder with right permissions before it is used
This commit is contained in:
parent
2f7d7b8ffd
commit
46895760c4
1 changed files with 14 additions and 7 deletions
|
@ -87,6 +87,20 @@
|
|||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: "Add directory that the repos get cloned into"
|
||||
ansible.builtin.file:
|
||||
path: "/opt/repos"
|
||||
state: "present"
|
||||
owner: nobody
|
||||
group: nogroup
|
||||
|
||||
- name: "chown repo directories to nobody:nogroup"
|
||||
ansible.builtin.file:
|
||||
path: "/opt/repos/"
|
||||
recurse: true
|
||||
owner: nobody
|
||||
group: nogroup
|
||||
|
||||
- name: "Remove repos that already exist"
|
||||
ansible.builtin.file:
|
||||
path: "/opt/repos/{{ item }}"
|
||||
|
@ -115,13 +129,6 @@
|
|||
delay: 2
|
||||
retries: 20
|
||||
|
||||
- name: "chown repo directories to nobody:nogroup"
|
||||
ansible.builtin.file:
|
||||
path: "/opt/repos/"
|
||||
recurse: true
|
||||
owner: nobody
|
||||
group: nogroup
|
||||
|
||||
- name: "Build Debian packages for tinyalsa"
|
||||
ansible.builtin.shell:
|
||||
cmd: debuild -i -us -uc -b
|
||||
|
|
Loading…
Reference in a new issue