never mind that didn't work
This commit is contained in:
parent
6ace7519c1
commit
17497d458b
@ -18,10 +18,11 @@
|
||||
# Ansible user SSH pub key
|
||||
# This is a really stupid way to do it, but alas.
|
||||
# This uses an environment variable named ansiblesvc_key in Semaphore which has the ssh-rsa pubkey.
|
||||
- name: Add deployment user's SSH key.
|
||||
- name: Create ssh directory for deployment user.
|
||||
file:
|
||||
path: /home/ansible/.ssh
|
||||
state: directory
|
||||
- name: Add deployment user's SSH key.
|
||||
shell:
|
||||
cmd: echo "{{ ansiblesvc_key }}" > /home/ansible/.ssh/authorized_keys
|
||||
creates: /home/ansible/.ssh/authorized_keys
|
||||
@ -62,10 +63,11 @@
|
||||
# Sysadmin user SSH pub key
|
||||
# This is a really stupid way to do it, but alas.
|
||||
# This uses an environment variable named nhadmin_key in Semaphore which has the ssh-rsa pubkey.
|
||||
- name: Add nhadmin user's SSH key.
|
||||
- name: Create ssh directory for nhadmin.
|
||||
file:
|
||||
path: /home/nhadmin/.ssh
|
||||
state: directory
|
||||
- name: Add nhadmin user's SSH key.
|
||||
shell:
|
||||
cmd: echo "{{ nhadmin_key }}" > /home/nhadmin/.ssh/authorized_keys
|
||||
creates: /home/nhadmin/.ssh/authorized_keys
|
||||
|
Loading…
x
Reference in New Issue
Block a user