Add nhadmin ssh directory
This commit is contained in:
parent
a2b4e96e26
commit
3681d62858
@ -60,7 +60,13 @@
|
||||
# add to sudo
|
||||
groups: sudo
|
||||
append: yes
|
||||
|
||||
# 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: Create deployment user .ssh directory.
|
||||
file:
|
||||
path: /home/ansible/.ssh
|
||||
state: directory
|
||||
- name: Add nhadmin user's SSH key.
|
||||
shell:
|
||||
cmd: echo "{{ nhadmin_key }}" > /home/nhadmin/.ssh/authorized_keys
|
||||
|
Loading…
x
Reference in New Issue
Block a user