diff options
author | clarkzjw <[email protected]> | 2023-01-13 21:10:50 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-01-13 21:10:50 -0800 |
commit | 21cc52e300a50520f21ea11f7710a6bc132bef89 (patch) | |
tree | ee7c38e2088c38437df709089d80571a0cff6cf8 /clarkzjw.cc/config | |
parent | 2e5381257ac797a49e2e33016c11fd99d4565e4e (diff) | |
download | homelab-21cc52e300a50520f21ea11f7710a6bc132bef89.tar.gz |
ansible: install cloudflared as a service
Diffstat (limited to 'clarkzjw.cc/config')
-rw-r--r-- | clarkzjw.cc/config/atlas/ansible/roles/cloudflared/defaults/main.yaml | 1 | ||||
-rw-r--r-- | clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml | 4 |
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 }} | ||