Deploy headscale
This commit is contained in:
24
ansible/roles/headscale/tasks/main.yml
Normal file
24
ansible/roles/headscale/tasks/main.yml
Normal file
@ -0,0 +1,24 @@
|
||||
- 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
|
Reference in New Issue
Block a user