Fix the name of the SSH agent sock envvar

The envvar is SSH_AUTH_SOCK not SSH_AGENT_SOCK

Change-Id: If2b45be15cb8ae387e34c4d9f4d9964ed0be4b0d
This commit is contained in:
Logan V 2018-09-12 16:53:20 -06:00
parent c1e3cacf45
commit 58524ac58c
2 changed files with 2 additions and 2 deletions

View File

@ -28,6 +28,6 @@
- name: Add the SSH key
command: "ssh-add {{ ssh_private_key_tmp.path }}"
environment:
SSH_AGENT_SOCK: "{{ ssh_agent_sock }}"
SSH_AUTH_SOCK: "{{ ssh_agent_sock }}"
- name: Remove the SSH private key from disk
command: "shred -u {{ ssh_private_key_tmp.path }}"

View File

@ -4,7 +4,7 @@
become: yes
become_user: root
environment:
SSH_AGENT_SOCK: "{{ ssh_agent_sock }}"
SSH_AUTH_SOCK: "{{ ssh_agent_sock }}"
ANSIBLE_VAULT_PASSWORD_FILE: "{{ vault_key_path }}"
tasks:
- name: Run the deploy job