Skip to content

Commit

Permalink
network: skip "Warning when used on Ubuntu >= 22.04" on Debian (#697)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Aug 18, 2024
1 parent 6d2ab38 commit b7c5d5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/network/tasks/interfaces-Debian-family.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
- name: Warning when used on Ubuntu >= 22.04
ansible.builtin.debug:
msg: "For Ubuntu >= 22.04 Netplan should be used instead of Interface"
when: "ansible_distribution_version is version('22.04', '>=')"
when:
- ansible_distribution == "Ubuntu"
- ansible_distribution_version is version('22.04', '>=')

- name: Get existing netplan configuration files
ansible.builtin.find:
Expand Down

0 comments on commit b7c5d5f

Please sign in to comment.