Raspberry-Pi-IaC/roles/cloudflared/tasks/main.yml
2024-10-05 12:58:04 +02:00

10 lines
400 B
YAML

---
- name: Install Cloudflared
become: true
ansible.builtin.apt:
deb: https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64.deb
- name: Install the Cloudflared tunnel as a systemd service
become: true
ansible.builtin.command:
cmd: "cloudflared service install {{ cloudflared_refresh_token }}"
creates: /etc/systemd/system/cloudflared.service