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:
parent
c1e3cacf45
commit
58524ac58c
|
@ -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 }}"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue