18 lines
356 B
Smarty
18 lines
356 B
Smarty
#cloud-config
|
|
users:
|
|
- name: "ansible"
|
|
groups: ["sudo"]
|
|
sudo: "ALL=(ALL) NOPASSWD:ALL"
|
|
shell: "/bin/bash"
|
|
ssh_authorized_keys:
|
|
- "${ssh_pubkey}"
|
|
|
|
packages:
|
|
- nginx
|
|
|
|
package_update: true
|
|
package_upgrade: true
|
|
|
|
runcmd:
|
|
- systemctl enable --now nginx
|
|
- echo "<h1>terraformed</h1>\nthis is $(hostname)" > /var/www/html/index.html
|