Put this on hold for now
This commit is contained in:
parent
0dba3a883a
commit
0bf9dde333
@ -63,15 +63,16 @@
|
|||||||
force: true
|
force: true
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Set authorized_keys file for git user
|
# TODO(decentral1se): make this work...
|
||||||
lineinfile:
|
# - name: Set authorized_keys file for git user
|
||||||
path: /var/lib/gitea/git/.ssh/authorized_keys
|
# lineinfile:
|
||||||
regexp: "^{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}"
|
# path: /var/lib/gitea/git/.ssh/authorized_keys
|
||||||
line: "{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}{{ lookup('file', '/var/lib/gitea/git/.ssh/authorized_keys') }}"
|
# regexp: "^{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}"
|
||||||
state: present
|
# line: "{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}{{ lookup('file', '/var/lib/gitea/git/.ssh/authorized_keys') }}"
|
||||||
insertbefore: BOF
|
# state: present
|
||||||
create: true
|
# insertbefore: BOF
|
||||||
become: true
|
# create: true
|
||||||
|
# become: true
|
||||||
|
|
||||||
- name: Symlink the authorized keys configuration
|
- name: Symlink the authorized keys configuration
|
||||||
file:
|
file:
|
||||||
|
@ -8,27 +8,6 @@
|
|||||||
extensions:
|
extensions:
|
||||||
- yml
|
- 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
|
- name: Configure git.autonomic.zone domain
|
||||||
dokku_domains:
|
dokku_domains:
|
||||||
app: gitea
|
app: gitea
|
||||||
|
Reference in New Issue
Block a user