From 5e9e3aa28092ceebbb4ba752208566d7239ad234 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Fri, 13 Jan 2023 20:40:31 -0800 Subject: ansible: add cloudflared ansible --- .../atlas/ansible/roles/cloudflared/tasks/main.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml (limited to 'clarkzjw.cc/config/atlas/ansible/roles') 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 @@ +- name: Add Cloudflared GPG apt Key + apt_key: + url: https://pkg.cloudflare.com/cloudflare-main.gpg + keyring: /usr/share/keyrings/cloudflare-main.gpg + state: present + +- name: Add Cloudflared Repository + apt_repository: + repo: deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared {{ ansible_distribution_release | lower }} main + state: present + +- name: Install Cloudflared + apt: + name: + - cloudflared + update_cache: true -- cgit v1.2.3