summaryrefslogtreecommitdiff
path: root/deploy-vpn-hosts.yml
blob: 9e281ab51f62c3d6203e872d18f6792bd32ecb5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- name: prod headscale tags
  hosts: prod
  tasks:
    - name: add prod tags to prod servers
      include_role:
        name: artis3n.tailscale
      vars:
        tailscale_args: "--login-server='https://headscale.simponic.xyz'"
        tailscale_authkey: "{{ lookup('env', 'HEADSCALE_PREAUTH_KEY') }}"
        tailscale_tags: 
          - "prod"

- name: private headscale tags
  hosts: private
  tasks:
    - name: add private tags to private servers
      include_role:
        name: artis3n.tailscale
      vars:
        tailscale_args: "--login-server='https://headscale.simponic.xyz'"
        tailscale_authkey: "{{ lookup('env', 'HEADSCALE_PREAUTH_KEY') }}"
        tailscale_tags: 
          - "private"