aboutsummaryrefslogtreecommitdiff
blob: 1648bc67907a02ecf8fa9c7078b9dd82f45c2e60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- 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 }}
Powered by cgit v1.2.3 (git 2.41.0)