#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 "

terraformed

\nthis is $(hostname)" > /var/www/html/index.html