blob: 1648bc67907a02ecf8fa9c7078b9dd82f45c2e60 (
plain) (
tree)
|
|
- 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
- name: Install Cloudflared as system service
shell: |
sudo cloudflared service install {{ cloudflare_atlas_tunnel_token }}
|