diff options
Diffstat (limited to 'roles/wgtor')
-rw-r--r-- | roles/wgtor/handlers/main.yml | 2 | ||||
-rw-r--r-- | roles/wgtor/tasks/main.yml | 6 | ||||
-rw-r--r-- | roles/wgtor/templates/wgtor0.conf.j2 (renamed from roles/wgtor/templates/wg2.conf.j2) | 0 |
3 files changed, 4 insertions, 4 deletions
diff --git a/roles/wgtor/handlers/main.yml b/roles/wgtor/handlers/main.yml index 9f1d3c5..dfc1cb2 100644 --- a/roles/wgtor/handlers/main.yml +++ b/roles/wgtor/handlers/main.yml @@ -3,5 +3,5 @@ # hooks. - name: Restart wgtor ansible.builtin.service: - name: wg-quick@wg2 + name: wg-quick@wgtor0 state: restarted diff --git a/roles/wgtor/tasks/main.yml b/roles/wgtor/tasks/main.yml index 68a4aee..d8f04aa 100644 --- a/roles/wgtor/tasks/main.yml +++ b/roles/wgtor/tasks/main.yml @@ -1,7 +1,7 @@ - name: Configure WireGuard for wgtor ansible.builtin.template: - src: templates/wg2.conf.j2 - dest: /etc/wireguard/wg2.conf + src: templates/wgtor0.conf.j2 + dest: /etc/wireguard/wgtor0.conf owner: root group: root mode: u+rw,g-rw,o-rw @@ -9,6 +9,6 @@ - name: Enable WireGuard service for wgtor ansible.builtin.service: - name: wg-quick@wg2 + name: wg-quick@wgtor0 enabled: yes state: started diff --git a/roles/wgtor/templates/wg2.conf.j2 b/roles/wgtor/templates/wgtor0.conf.j2 index 5d72891..5d72891 100644 --- a/roles/wgtor/templates/wg2.conf.j2 +++ b/roles/wgtor/templates/wgtor0.conf.j2 |