[copr] backend: set correct ownership for results dir
This commit is contained in:
parent
7f98bbce01
commit
70a5b01d36
2 changed files with 11 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
- name: check/create instance
|
||||
#hosts: copr-back:copr-back-stg
|
||||
hosts: copr-back
|
||||
hosts: copr-back-stg
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
|||
|
||||
- name: cloud basic setup
|
||||
#hosts: copr-back:copr-back-stg
|
||||
hosts: copr-back
|
||||
hosts: copr-back-stg
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
- name: provision instance
|
||||
#hosts: copr-back:copr-back-stg
|
||||
hosts: copr-back
|
||||
hosts: copr-back-stg
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
|
|
|
@ -145,3 +145,11 @@
|
|||
|
||||
- name: setup monitoring
|
||||
include: "monitoring.yml"
|
||||
|
||||
- name: get owner for results dir
|
||||
stat: path=/var/lib/copr/public_html
|
||||
register: copr_results_dir_st
|
||||
|
||||
- name: change owner for results dir if it isn't copr
|
||||
shell: "chown -R copr:copr /var/lib/copr/public_html"
|
||||
when: copr_results_dir_st.stat.pw_name != copr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue