Skip to content

Commit 9be3419

Browse files
authored
18.1.0 (#224)
* update README/CHANGELOG * Molecule: update netplan scenario * Molecule: update single-server scenario * fix too many spaces after colon * Replace ansible_managed variable with internal wireguard__ansible_managed variable * update README/CHANGELOG
1 parent de9fd1d commit 9be3419

File tree

8 files changed

+35
-13
lines changed

8 files changed

+35
-13
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ SPDX-License-Identifier: GPL-3.0-or-later
55

66
# Changelog
77

8+
## 18.1.0
9+
10+
- **OTHER**
11+
- fix issues when running with ansible-core >= 2.19.0 ([Issue #219](https://github.com/githubixx/ansible-role-wireguard/issues/219) / [PR #220](https://github.com/githubixx/ansible-role-wireguard/pull/220/) - contribution by @jonathanplatzer)
12+
- replace `ansible_managed` variable with internal `wireguard__ansible_managed` variable. Reason: `DEFAULT_MANAGED_STR` option is deprecated in Ansible 2.19. The `ansible_managed` variable can be set just like any other variable, or a different variable can be used. At the end for now nothing changes for the user of this role as the output string `Ansible managed` will stay the same.
13+
14+
- **MOLECULE**
15+
- Molecule: update `netplan` scenario
16+
- Molecule: update `single-server` scenario
17+
818
## 18.0.0
919

1020
- **BREAKING**

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ See full [CHANGELOG.md](https://github.com/githubixx/ansible-role-wireguard/blob
6868

6969
**Recent changes:**
7070

71+
## 18.1.0
72+
73+
- **OTHER**
74+
- fix issues when running with ansible-core >= 2.19.0 ([Issue #219](https://github.com/githubixx/ansible-role-wireguard/issues/219) / [PR #220](https://github.com/githubixx/ansible-role-wireguard/pull/220/) - contribution by @jonathanplatzer)
75+
- replace `ansible_managed` variable with internal `wireguard__ansible_managed` variable. Reason: `DEFAULT_MANAGED_STR` option is deprecated in Ansible 2.19. The `ansible_managed` variable can be set just like any other variable, or a different variable can be used. At the end for now nothing changes for the user of this role as the output string `Ansible managed` will stay the same.
76+
77+
- **MOLECULE**
78+
- Molecule: update `netplan` scenario
79+
- Molecule: update `single-server` scenario
80+
7181
## 18.0.0
7282

7383
- **BREAKING**

molecule/default/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ driver:
1414

1515
platforms:
1616
- name: test-wg-debian13
17-
box: alvistack/debian-13
17+
box: alvistack/debian-13
1818
memory: 1536
1919
cpus: 2
2020
interfaces:

molecule/netplan/molecule.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ driver:
1313
type: libvirt
1414

1515
platforms:
16-
- name: test-wg-ubuntu2004
17-
box: alvistack/ubuntu-20.04
16+
- name: test-wg01-ubuntu2404
17+
box: alvistack/ubuntu-24.04
1818
memory: 1536
1919
cpus: 2
2020
interfaces:
@@ -25,7 +25,7 @@ platforms:
2525
groups:
2626
- vpn
2727
- ubuntu
28-
- name: test-wg-ubuntu2204
28+
- name: test-wg02-ubuntu2204
2929
box: alvistack/ubuntu-22.04
3030
memory: 1536
3131
cpus: 2
@@ -37,7 +37,7 @@ platforms:
3737
groups:
3838
- vpn
3939
- ubuntu
40-
- name: test-wg-ubuntu2404
40+
- name: test-wg03-ubuntu2404
4141
box: alvistack/ubuntu-24.04
4242
memory: 1536
4343
cpus: 2
@@ -60,18 +60,18 @@ provisioner:
6060
name: ansible-lint
6161
inventory:
6262
host_vars:
63-
test-wg-ubuntu2004:
63+
test-wg01-ubuntu2404:
6464
wireguard_address: "10.10.10.10/24"
6565
wireguard_port: 51820
6666
wireguard_persistent_keepalive: "30"
6767
wireguard_endpoint: "172.16.10.10"
68-
test-wg-ubuntu2204:
68+
test-wg02-ubuntu2204:
6969
wireguard_address: "10.10.10.20/24"
7070
wireguard_port: 51820
7171
wireguard_persistent_keepalive: "30"
7272
wireguard_endpoint: "172.16.10.20"
7373
wireguard_conf_backup: true
74-
test-wg-ubuntu2404:
74+
test-wg03-ubuntu2404:
7575
wireguard_address: "10.10.10.30/24"
7676
wireguard_port: 51820
7777
wireguard_persistent_keepalive: "30"

molecule/single-server/molecule.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ driver:
1212
type: libvirt
1313

1414
platforms:
15-
- name: test-wg-ubuntu2004
16-
box: alvistack/ubuntu-20.04
15+
- name: test-wg-ubuntu2404
16+
box: alvistack/ubuntu-24.04
1717
memory: 1536
1818
cpus: 2
1919
interfaces:
@@ -59,7 +59,7 @@ provisioner:
5959
name: ansible-lint
6060
inventory:
6161
host_vars:
62-
test-wg-ubuntu2004:
62+
test-wg-ubuntu2404:
6363
wireguard_address: "10.10.10.10/24"
6464
wireguard_port: 51820
6565
wireguard_persistent_keepalive: "30"

tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@
162162
when: not wireguard_ubuntu_use_netplan
163163

164164
- name: Generate WireGuard configuration file
165+
vars:
166+
wireguard__ansible_managed: "Ansible managed"
165167
ansible.builtin.template:
166168
src: "etc/{{ 'wireguard/wg.conf.j2' if not wireguard_ubuntu_use_netplan else 'netplan/wg.yaml.j2' }}"
167169
dest: "{{ wireguard_remote_directory }}/{{ wireguard_conf_filename }}"

templates/etc/netplan/wg.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ ansible_managed }}
1+
# {{ wireguard__ansible_managed }}
22
network:
33
version: 2
44
renderer: networkd

templates/etc/wireguard/wg.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{# Copyright (C) 2018-2025 Robert Wimmer
33
# SPDX-License-Identifier: GPL-3.0-or-later
44
#}
5-
# {{ ansible_managed }}
5+
# {{ wireguard__ansible_managed }}
66

77
[Interface]
88
# {{ inventory_hostname }}

0 commit comments

Comments
 (0)