infrastructure/ansible/roles/headscale/tasks/main.yml
Jake Howard 2ceeaf091d
Some checks failed
/ terraform (push) Failing after 11m20s
/ ansible (push) Failing after 11m6s
Deploy headscale
2024-01-27 14:18:37 +00:00

24 lines
485 B
YAML

- name: Include vault
include_vars: vault.yml
- name: Install Headscale
package:
name: headscale
become: true
- name: Install headscale config file
template:
src: files/headscale.yml
dest: /etc/headscale/config.yaml
owner: headscale
mode: "0644"
notify: restart headscale
become: true
- name: Install nginx config
template:
src: files/nginx.conf
dest: /etc/nginx/http.d/headscale.conf
mode: "0644"
become: true
notify: reload nginx