copr-hv: allow @sysadmin-copr to ssh as 'copr', not root

This commit is contained in:
Pavel Raiskup 2021-04-23 14:31:47 +02:00
parent e78f4671e2
commit 8ebff52f89
2 changed files with 6 additions and 2 deletions

View file

@ -1,8 +1,6 @@
---
virthost: true
root_auth_users: @sysadmin-copr
vpn: true
primary_auth_source: ipa
ipa_host_group: vmhost-copr

View file

@ -88,6 +88,12 @@
with_file:
- buildsys.pub
- name: add root keys for sysadmin-main and other allowed users
action: authorized_key user=copr key={{ item }}
with_lines:
- "{{ auth_keys_from_fas}} @sysadmin-copr"
tags: copr_admins
# todo: generate it's own key
- name: make sure hostA can ssh to hostB
copy: