19 lines
686 B
Smarty
19 lines
686 B
Smarty
#cloud-config
|
|
users:
|
|
- name: "ansible"
|
|
groups: ["sudo"]
|
|
sudo: "ALL=(ALL) NOPASSWD:ALL"
|
|
shell: "/bin/bash"
|
|
ssh_authorized_keys:
|
|
- "${ssh_pubkey}"
|
|
|
|
package_update: true
|
|
package_upgrade: true
|
|
|
|
runcmd:
|
|
- curl -LO https://download.docker.com/linux/ubuntu/dists/focal/pool/stable/amd64/containerd.io_${containerd_version}-1_amd64.deb
|
|
- curl -LO https://download.docker.com/linux/ubuntu/dists/focal/pool/stable/amd64/docker-ce-cli_${docker_version}~3-0~ubuntu-focal_amd64.deb
|
|
- curl -LO https://download.docker.com/linux/ubuntu/dists/focal/pool/stable/amd64/docker-ce_${docker_version}~3-0~ubuntu-focal_amd64.deb
|
|
- dpkg -i *deb
|
|
- usermod -a -G docker ansible
|