aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-01-13 21:10:50 -0800
committerclarkzjw <[email protected]>2023-01-13 21:10:50 -0800
commit21cc52e300a50520f21ea11f7710a6bc132bef89 (patch)
treeee7c38e2088c38437df709089d80571a0cff6cf8 /clarkzjw.cc/config/atlas/ansible/roles
parent2e5381257ac797a49e2e33016c11fd99d4565e4e (diff)
downloadhomelab-21cc52e300a50520f21ea11f7710a6bc132bef89.tar.gz
ansible: install cloudflared as a service
Diffstat (limited to 'clarkzjw.cc/config/atlas/ansible/roles')
-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)