Skip to content

Commit b7c5d5f

Browse files
authored
network: skip "Warning when used on Ubuntu >= 22.04" on Debian (#697)
Signed-off-by: Christian Berendt <[email protected]>
1 parent 6d2ab38 commit b7c5d5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roles/network/tasks/interfaces-Debian-family.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
- name: Warning when used on Ubuntu >= 22.04
33
ansible.builtin.debug:
44
msg: "For Ubuntu >= 22.04 Netplan should be used instead of Interface"
5-
when: "ansible_distribution_version is version('22.04', '>=')"
5+
when:
6+
- ansible_distribution == "Ubuntu"
7+
- ansible_distribution_version is version('22.04', '>=')
68

79
- name: Get existing netplan configuration files
810
ansible.builtin.find:

0 commit comments

Comments
 (0)