Add cloudflared role
This commit is contained in:
parent
fa78dc7a83
commit
ea8e387a1c
3 changed files with 28 additions and 0 deletions
10
roles/cloudflared/tasks/main.yml
Normal file
10
roles/cloudflared/tasks/main.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue