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 --- clarkzjw.cc/config/atlas/ansible/cloudflared.yaml | 7 +++++++ .../atlas/ansible/roles/cloudflared/tasks/main.yaml | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 clarkzjw.cc/config/atlas/ansible/cloudflared.yaml create mode 100644 clarkzjw.cc/config/atlas/ansible/roles/cloudflared/tasks/main.yaml (limited to 'clarkzjw.cc') 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 @@ +- name: Install Cloudflared + hosts: atlas + remote_user: clarkzjw + gather_facts: true + + roles: + - 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 @@ +- 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