Revert "Use ansible_user_dir for SSH config"

This reverts commit 17a0f6aa98.

Change-Id: I276dc01f962c22874c418223c025a9b90fd4da9e
This commit is contained in:
Logan V 2018-09-13 13:44:17 -06:00
parent a52b42fe2f
commit d2c7b0a3f8
1 changed files with 10 additions and 4 deletions

View File

@ -15,18 +15,24 @@
dest: "{{ vault_key_path }}"
mode: '0600'
# Drop the SSH proxyjump configuration
# Drop the SSH proxyjump configuration
- hosts: all
become: yes
become_user: root
tasks:
- name: Ensure the SSH configuration directory exists
file:
path: "{{ ansible_user_dir }}/.ssh"
path: /root/.ssh
state: directory
- name: Copy the SSH proxy configuration
copy:
src: "{{ lsn_ci_src_path }}/ssh/ssh_config"
dest: "{{ ansible_user_dir }}/.ssh/config"
dest: /root/.ssh/config
remote_src: yes
# Start SSH agent and load the deployment key
# Start SSH agent and load the deployment key
- hosts: all
tasks:
- name: Create the SSH private key tempfile
tempfile:
state: file