WIP copy/pasta keys with ansible

This commit is contained in:
Luke Murphy 2020-03-23 21:15:09 +01:00
parent f5887a0879
commit 53dc7dd107
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 15 additions and 0 deletions

View File

@ -8,6 +8,21 @@
extensions:
- yml
- name: Retrieve git user ssh public key
set_fact:
git_ssh_pub_key: "{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}"
git_auth_keys: "{{ lookup('file', '/var/lib/gitea/git/.ssh/authorized_keys') }}"
become: true
- name: TEST TEST TEST
lineinfile:
path: /var/lib/gitea/git/.ssh/authorized_keys
regexp: "^{{ git_ssh_pub_key }}"
line: "{{ git_ssh_pub_key }}{{ git_auth_keys }}"
state: present
create: true
become: true
- name: Configure git.autonomic.zone domain
dokku_domains:
app: gitea