Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

In this tutorial https://www.digitalocean.com/community/tutorials/how-to-use-ansible-with-terraform-for-configuration-management
There is mention in ~/terraform-ansible/apache-install.yml
to use the public key as:
key: “{{ lookup(‘file’, pub_key) }}”
command = "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -u root -i '${self.ipv4_address},' --private-key ${var.pvt_key} -e 'pub_key=${var.pub_key}' apache-install.yml"
However, I am getting this error, and I am unclear if the key path should be for my local or target directory? Am I declaring the path correctly? Could the example be improved?
Error: │ Error running command ‘ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -u root -i ‘137.184.135.14,’ --private-key ~/.ssh/id_ed25519 -e ‘pub_key=~/.ssh/id_ed25519.pub’ apache-install.yml’: exit status 2. Output: │ PLAY [apache-install] ********************************************************** │ │ TASK [Gathering Facts] ********************************************************* │ fatal: [137.184.135.14]: FAILED! => {“changed”: false, “module_stderr”: “Shared connection to 137.184.135.14 closed.\r\n”, “module_stdout”: “/bin/sh: 1: /usr/bin/python: not found\r\n”, “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 127} │ to retry, use: --limit @/mnt/ap/ap/terraform-ansible/apache-install.retry
Note that I see this from Stack Overflow, not sure if it is relevant? https://stackoverflow.com/questions/29392369/ansible-ssh-private-key-in-source-control
I also am getting confused about keeping secrets vs storing things in the wrong places.
Could use an example .gitignore too
Also - for this digitalocean ssh key
data “digitalocean_ssh_key” “terraform” { name = “terraform” }
72e571841e7f4a6881090a2f3e93c0
dom77a6e2e9d3a2
Christoffer Braathen
Jaimin Joshi
099d155dd62c45078c85bd5b98d003
82488cefb7d74db1ad87250ea4f452
Mrugesh Mohapatra
828c1c19bec3419eb032d05c128960
Rumyana Rumenova
Ben Roberts
garry55441234