We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22a105d commit 477218aCopy full SHA for 477218a
ansible/playbook-gcp-vm-create.yaml
@@ -60,7 +60,7 @@
60
- name: Save SSH private key
61
copy:
62
content: "{{ ssh_private_key }}"
63
- dest: "~/.ssh/id_rsa"
+ dest: "/tmp/id_rsa"
64
mode: 0600
65
66
- name: Configure SSH client
@@ -76,7 +76,7 @@
76
77
content: |
78
[gcp]
79
- {{ external_ip }} ansible_user={{ ansible_user }} ansible_ssh_private_key_file=~/.ssh/id_rsa
+ {{ external_ip }} ansible_user={{ ansible_user }} ansible_ssh_private_key_file=/tmp/id_rsa
80
dest: /tmp/inventory.ini
81
82
- name: Wait for SSH on the provisioned VM
0 commit comments