diff options
| author | Ahmed AbdelHalim <[email protected]> | 2026-06-14 01:01:06 +0200 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2026-06-14 01:01:06 +0200 |
| commit | b79a014d03ad801589e6990bf2501821320e0c10 (patch) | |
| tree | 4259ca093d34e2454a3b72667928de8d8fe8467a | |
| parent | 399da4c38670506d3d41bd712b1445f07fec5c10 (diff) | |
Fix wg-portal not started after install
| -rw-r--r-- | roles/wg_portal/tasks/main.yml | 9 |
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 / { |
