Add cloudflared role

This commit is contained in:
Thomas Kleinendorst 2024-10-05 12:58:04 +02:00
parent fa78dc7a83
commit ea8e387a1c
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,10 @@
---
- 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