infrastructure/ansible/roles/headscale/tasks/main.yml
Jake Howard d5a7a61171
All checks were successful
/ terraform (push) Successful in 38s
/ ansible (push) Successful in 1m30s
Remove unnecessary use of become from some roles
This should make execution much faster
2024-09-09 17:09:03 +01:00

29 lines
600 B
YAML

- 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
mode: "0600"
notify: restart headscale
- name: Install ACLs
template:
src: files/acls.json
dest: /etc/headscale/acls.json
owner: headscale
mode: "0600"
notify: restart headscale
- name: Install nginx config
template:
src: files/nginx.conf
dest: /etc/nginx/http.d/headscale.conf
mode: "0644"
notify: reload nginx