2024-01-27 14:18:37 +00:00
|
|
|
- name: Include vault
|
|
|
|
include_vars: vault.yml
|
|
|
|
|
|
|
|
- name: Install Headscale
|
|
|
|
package:
|
|
|
|
name: headscale
|
|
|
|
|
|
|
|
- name: Install headscale config file
|
|
|
|
template:
|
|
|
|
src: files/headscale.yml
|
|
|
|
dest: /etc/headscale/config.yaml
|
|
|
|
owner: headscale
|
2024-04-20 15:46:21 +01:00
|
|
|
mode: "0600"
|
|
|
|
notify: restart headscale
|
|
|
|
|
|
|
|
- name: Install ACLs
|
|
|
|
template:
|
|
|
|
src: files/acls.json
|
|
|
|
dest: /etc/headscale/acls.json
|
|
|
|
owner: headscale
|
|
|
|
mode: "0600"
|
2024-01-27 14:18:37 +00:00
|
|
|
notify: restart headscale
|
|
|
|
|
|
|
|
- name: Install nginx config
|
|
|
|
template:
|
|
|
|
src: files/nginx.conf
|
|
|
|
dest: /etc/nginx/http.d/headscale.conf
|
|
|
|
mode: "0644"
|
|
|
|
notify: reload nginx
|