summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/wg_portal/tasks/main.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/roles/wg_portal/tasks/main.yml b/roles/wg_portal/tasks/main.yml
index b3e45731..a7962919 100644
--- a/roles/wg_portal/tasks/main.yml
+++ b/roles/wg_portal/tasks/main.yml
@@ -87,9 +87,16 @@
notify: "Restart wg-portal"
no_log: true
+- name: "Start and enable wg-portal"
+ become: true
+ ansible.builtin.systemd_service:
+ name: "wg-portal"
+ state: "started"
+ enabled: true
+
- name: "Create wg-portal nginx configurations"
become: true
- when: wg_portal_by_nginx is defined and wg_portal_by_nginx != ""
+ when: wg_portal_by_nginx is defined and wg_portal_by_nginx | bool
ansible.builtin.copy:
content: |
location / {