homelab_flarum/roles/flarum/tasks/add_to_cloudflare_tunnel.yml

16 lines
445 B
YAML
Raw Normal View History

2024-03-05 08:32:15 -06:00
---
- name: Add Cloudflare Tunnel route
become: yes
lineinfile:
2024-03-06 11:39:48 -06:00
path: /etc/cloudflared/config.yml
regexp: "- hostname: flarum\\.bubblesthebunny\\.com[\\W]*service: https:\\/\\/localhost:8544"
2024-03-05 08:32:15 -06:00
line: |-
- hostname: flarum.bubblesthebunny.com
service: https://localhost:8544
insertbefore: "- service: http_status:404"
- name: Restart Cloudflared
become: yes
systemd:
name: cloudflared
state: restarted