Skip to content

Instantly share code, notes, and snippets.

@ernesen
Created March 24, 2019 13:58
Show Gist options
  • Save ernesen/0e2392383ad9da1134e1d2cc132421c4 to your computer and use it in GitHub Desktop.
Save ernesen/0e2392383ad9da1134e1d2cc132421c4 to your computer and use it in GitHub Desktop.
# Ansible requires Python to be installed on the remote machine as well as the local machine.
provisioner "remote-exec" {
inline = ["sudo apt-get -qq install python -y"]
}
connection {
private_key = "${file(var.private_key)}"
user = "ubuntu"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment