copr-keygen: only fix ownership for the initial mount
The task is otherwise very racy: fatal: [copr-keygen.aws.fedoraproject.org]: FAILED! => {"changed": false, "msg": "path /var/lib/copr-keygen/gnupg/.#....copr-keygen.aws.fedoraproject.org.... does not exist", "path": "/var/lib/copr-keygen/gnupg/.#l....copr-keygen.aws.fedoraproject.org...."}
This commit is contained in:
parent
99e3ca8b1e
commit
db6ca9afee
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
- name: mount up disk of copr repo
|
||||
mount: name=/var/lib/copr-keygen src='LABEL=copr-keygen' fstype=ext4 state=mounted
|
||||
register: keychain_mounted
|
||||
|
||||
- name: install copr-keygen
|
||||
dnf: state=present name=copr-keygen
|
||||
|
@ -12,6 +13,7 @@
|
|||
|
||||
- name: change owner of data to copr-signer
|
||||
file: path=/var/lib/copr-keygen owner=copr-signer group=copr-signer recurse=yes
|
||||
when: keychain_mounted.changed
|
||||
|
||||
- name: put keygen vhost for httpd
|
||||
copy: src="httpd/copr-keygen.conf" dest="/etc/httpd/conf.d/copr-keygen.conf"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue