diff options
Diffstat (limited to 'clarkzjw.cc/config/atlas/ansible')
-rw-r--r-- | clarkzjw.cc/config/atlas/ansible/cloudflared.yaml | 7 | ||||
-rw-r--r-- | clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml | 16 |
2 files changed, 23 insertions, 0 deletions
diff --git a/clarkzjw.cc/config/atlas/ansible/cloudflared.yaml b/clarkzjw.cc/config/atlas/ansible/cloudflared.yaml new file mode 100644 index 0000000..39a0077 --- /dev/null +++ b/clarkzjw.cc/config/atlas/ansible/cloudflared.yaml | |||
@@ -0,0 +1,7 @@ | |||
1 | - name: Install Cloudflared | ||
2 | hosts: atlas | ||
3 | remote_user: clarkzjw | ||
4 | gather_facts: true | ||
5 | |||
6 | roles: | ||
7 | - role: cloudflared | ||
diff --git a/clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml b/clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml new file mode 100644 index 0000000..4d36b58 --- /dev/null +++ b/clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml | |||
@@ -0,0 +1,16 @@ | |||
1 | - name: Add Cloudflared GPG apt Key | ||
2 | apt_key: | ||
3 | url: https://pkg.cloudflare.com/cloudflare-main.gpg | ||
4 | keyring: /usr/share/keyrings/cloudflare-main.gpg | ||
5 | state: present | ||
6 | |||
7 | - name: Add Cloudflared Repository | ||
8 | apt_repository: | ||
9 | repo: deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared {{ ansible_distribution_release | lower }} main | ||
10 | state: present | ||
11 | |||
12 | - name: Install Cloudflared | ||
13 | apt: | ||
14 | name: | ||
15 | - cloudflared | ||
16 | update_cache: true | ||