Put this on hold for now

This commit is contained in:
Luke Murphy 2020-03-23 21:24:37 +01:00
parent 0dba3a883a
commit 0bf9dde333
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 10 additions and 30 deletions

View File

@ -63,15 +63,16 @@
force: true
become: true
- name: Set authorized_keys file for git user
lineinfile:
path: /var/lib/gitea/git/.ssh/authorized_keys
regexp: "^{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}"
line: "{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}{{ lookup('file', '/var/lib/gitea/git/.ssh/authorized_keys') }}"
state: present
insertbefore: BOF
create: true
become: true
# TODO(decentral1se): make this work...
# - name: Set authorized_keys file for git user
# lineinfile:
# path: /var/lib/gitea/git/.ssh/authorized_keys
# regexp: "^{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}"
# line: "{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}{{ lookup('file', '/var/lib/gitea/git/.ssh/authorized_keys') }}"
# state: present
# insertbefore: BOF
# create: true
# become: true
- name: Symlink the authorized keys configuration
file:

View File

@ -8,27 +8,6 @@
extensions:
- yml
- name: Slurp the git user ssh public key
slurp:
src: /home/git/.ssh/id_rsa.pub
register: git_id_rsa
become: true
- name: Slurp the git user ssh authorized_keys
slurp:
src: /var/lib/gitea/git/.ssh/authorized_keys
register: git_auth_keys
become: true
- name: TEST TEST TEST
lineinfile:
path: /var/lib/gitea/git/.ssh/authorized_keys
regexp: "^{{ git_id_rsa['content'] }}"
line: "{{ git_id_rsa['content'] }}{{ git_auth_keys['content'] }}"
state: present
create: true
become: true
- name: Configure git.autonomic.zone domain
dokku_domains:
app: gitea