Skip to content

Commit 477218a

Browse files
committed
change dir
1 parent 22a105d commit 477218a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible/playbook-gcp-vm-create.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
- name: Save SSH private key
6161
copy:
6262
content: "{{ ssh_private_key }}"
63-
dest: "~/.ssh/id_rsa"
63+
dest: "/tmp/id_rsa"
6464
mode: 0600
6565

6666
- name: Configure SSH client
@@ -76,7 +76,7 @@
7676
copy:
7777
content: |
7878
[gcp]
79-
{{ external_ip }} ansible_user={{ ansible_user }} ansible_ssh_private_key_file=~/.ssh/id_rsa
79+
{{ external_ip }} ansible_user={{ ansible_user }} ansible_ssh_private_key_file=/tmp/id_rsa
8080
dest: /tmp/inventory.ini
8181

8282
- name: Wait for SSH on the provisioned VM

0 commit comments

Comments
 (0)