make the dir before you try to stuff a userdir in there
This commit is contained in:
parent
eccb2fa263
commit
7514a39a1c
1 changed files with 6 additions and 5 deletions
|
@ -43,15 +43,16 @@
|
|||
- screen
|
||||
|
||||
|
||||
- name: make /srv dirs
|
||||
file: state=directory path=$item
|
||||
with_items:
|
||||
- /srv/copr-work
|
||||
- /srv/copr-repos
|
||||
|
||||
|
||||
- name: make copr account
|
||||
action: user name=copr state=present system=yes home=/srv/copr-work/copr
|
||||
|
||||
- name: make /srv dirs
|
||||
file: state=directory path=$item owner=copr group=copr
|
||||
with_items:
|
||||
- /srv/copr-work
|
||||
- /srv/copr-repos
|
||||
|
||||
- name: setup dirs there
|
||||
action: file state=directory path=/srv/copr-work/copr/$item owner=copr group=copr mode=0700
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue