diff --git a/linux/compliance.yaml b/linux/compliance.yaml index bb05c96..e39dbe5 100644 --- a/linux/compliance.yaml +++ b/linux/compliance.yaml @@ -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 deployment user .ssh directory. 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