WIP copy/pasta keys with ansible
This commit is contained in:
parent
f5887a0879
commit
53dc7dd107
@ -8,6 +8,21 @@
|
|||||||
extensions:
|
extensions:
|
||||||
- yml
|
- 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
|
- name: Configure git.autonomic.zone domain
|
||||||
dokku_domains:
|
dokku_domains:
|
||||||
app: gitea
|
app: gitea
|
||||||
|
Reference in New Issue
Block a user