Revert "Use ansible_user_dir for SSH config"
This reverts commit 17a0f6aa98c09f9b289462e2f782ea9d8ac0bc39. Change-Id: I276dc01f962c22874c418223c025a9b90fd4da9e
This commit is contained in:
parent
a52b42fe2f
commit
d2c7b0a3f8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user