copr-dist-git: basically the current copr-dist-git user is no longer needed

only copr-service is (user under which copr-dist-git service currently runs)
This commit is contained in:
clime
2017-03-05 10:39:18 +01:00
parent 2508622b74
commit 34a4e94cab

View File

@@ -21,10 +21,6 @@
- name: install dist-git
dnf: state=latest name="dist-git"
- name: set home for copr-dist-git user
user: name="copr-dist-git" home=/var/lib/dist-git/git
when: devel
- name: install packages
dnf: state=present name={{ item }}
with_items:
@@ -65,10 +61,6 @@
file: path=/var/lib/dist-git/git owner=copr-service group=packager
when: not devel
- name: make sure directories are owned by root:root user
file: path=/var/lib/dist-git/git owner=root group=root mode=0755
when: devel
# set ssh key, so that copr-service could access gitolite
- name: read pub key into var
command: cat /home/copr-service/.ssh/id_rsa.pub
@@ -80,14 +72,6 @@
- debug: msg={{pubkey}}
- name: prepare authorized key for copr-dist-git
authorized_key: user="copr-dist-git" key="{{pubkey}}"
when: devel
- name: set correct selinux policy for copr-dist-git's .ssh dir
shell: 'semanage fcontext -a -t ssh_home_t "/var/lib/dist-git/git/.ssh(/.*)?" && restorecon -R /var/lib/dist-git/git/.ssh'
when: devel
- name: prepare authorized key, so copr-service could interact with gitolite
authorized_key: user="copr-dist-git" key="{{pubkey}}" key_options="command=\"HOME=/var/lib/dist-git/git/ /usr/share/gitolite3/gitolite-shell $USER \"'"
when: not devel