Browse Source

Revert "Use ansible_user_dir for SSH config"

This reverts commit 17a0f6aa98.

Change-Id: I276dc01f962c22874c418223c025a9b90fd4da9e
Logan V 7 months ago
parent
commit
d2c7b0a3f8
1 changed files with 10 additions and 4 deletions
  1. 10
    4
      .zuul.d/playbooks-deploy/pre.yml

+ 10
- 4
.zuul.d/playbooks-deploy/pre.yml View File

@@ -15,18 +15,24 @@
15 15
         dest: "{{ vault_key_path }}"
16 16
         mode: '0600'
17 17
 
18
-    # Drop the SSH proxyjump configuration
18
+# Drop the SSH proxyjump configuration
19
+- hosts: all
20
+  become: yes
21
+  become_user: root
22
+  tasks:
19 23
     - name: Ensure the SSH configuration directory exists
20 24
       file:
21
-        path: "{{ ansible_user_dir }}/.ssh"
25
+        path: /root/.ssh
22 26
         state: directory
23 27
     - name: Copy the SSH proxy configuration
24 28
       copy:
25 29
         src: "{{ lsn_ci_src_path }}/ssh/ssh_config"
26
-        dest: "{{ ansible_user_dir }}/.ssh/config"
30
+        dest: /root/.ssh/config
27 31
         remote_src: yes
28 32
 
29
-    # Start SSH agent and load the deployment key
33
+# Start SSH agent and load the deployment key
34
+- hosts: all
35
+  tasks:
30 36
     - name: Create the SSH private key tempfile
31 37
       tempfile:
32 38
         state: file

Loading…
Cancel
Save