I am new with Cloud-Init, I am trying to install tailscale and Docker with it, and some other packages
I tried several times and no luck and no error logs.
What I am doing wrong?
Here is my script:
#cloud-config
users:
- name: ubuntu
shell: /usr/bin/bash
ssh_import_id: gh:skhaz
sudo: ALL=(ALL:ALL) NOPASSWD:ALL
chpasswd:
expire: false
apt_upgrade: true
apt:
sources:
docker
source: deb [arch=amd64 trusted=yes] https://download.docker.com/linux/ubuntu focal stable
tailscale:
source: deb [arch=amd64 trusted=yes] https://pkgs.tailscale.com/stable/ubuntu focal main
packages:
- docker-ce
- tailscale
- aria2
- build-essential
- vim
- tmux
runcmd:
- tailscale up -authkey='REDACTED'
- ufw --force reset
- ufw allow in on tailscale0 to any
- ufw --force