Put this on hold for now
This commit is contained in:
parent
0dba3a883a
commit
0bf9dde333
@ -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:
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user