1
0
Fork 0
terraform-playground/three-web-hosts/user-data.yaml.tpl

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