diff options
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 }} | ||