Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for for issue #5 #6

Merged
merged 4 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
owner: "{{ headscale_user_uid }}"
group: "{{ headscale_user_gid }}"
mode: "0600"
notify: reload headscale
notify: restart headscale

- name: Copy configuration file template
when: headscale_config_template
Expand All @@ -17,7 +17,7 @@
owner: "{{ headscale_user_uid }}"
group: "{{ headscale_user_gid }}"
mode: "0600"
notify: reload headscale
notify: restart headscale

- name: Copy ACL policies file
copy:
Expand All @@ -26,7 +26,10 @@
owner: '{{ headscale_user_uid }}'
group: '{{ headscale_user_gid }}'
mode: 0600
notify: reload headscale
notify: restart headscale

- name: Flush handlers to ensure the service is started before creating users
meta: flush_handlers

- name: Ensure predefined users exist
command:
Expand Down
5 changes: 5 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@
group: '{{ headscale_user_gid }}'
mode: 0600
notify: restart headscale

- name: Enable headscale service
systemd_service:
name: headscale
enabled: true
Loading