aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'clarkzjw.cc/config/atlas/ansible/roles/cloudflared')
-rw-r--r--clarkzjw.cc/config/atlas/ansible/roles/cloudflared/defaults/main.yaml1
-rw-r--r--clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml4
2 files changed, 5 insertions, 0 deletions
diff --git a/clarkzjw.cc/config/atlas/ansible/roles/cloudflared/defaults/main.yaml b/clarkzjw.cc/config/atlas/ansible/roles/cloudflared/defaults/main.yaml
new file mode 100644
index 0000000..6a7efc4
--- /dev/null
+++ b/clarkzjw.cc/config/atlas/ansible/roles/cloudflared/defaults/main.yaml
@@ -0,0 +1 @@
cloudflare_atlas_tunnel_token: "{{ lookup('env', 'CLOUDFLARE_ATLAS_TUNNEL_TOKEN') }}"
diff --git a/clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml b/clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml
index 4d36b58..1648bc6 100644
--- a/clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml
+++ b/clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml
@@ -14,3 +14,7 @@
14 name: 14 name:
15 - cloudflared 15 - cloudflared
16 update_cache: true 16 update_cache: true
17
18- name: Install Cloudflared as system service
19 shell: |
20 sudo cloudflared service install {{ cloudflare_atlas_tunnel_token }}
Powered by cgit v1.2.3 (git 2.41.0)