Fix the netplan conditional.

This commit is contained in:
Andrea Dell'Amico 2023-10-26 13:03:15 +02:00
parent 7b838e598e
commit 96862210f0
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 3 additions and 2 deletions

View File

@ -29,10 +29,11 @@
owner: root
group: root
mode: "0644"
when: net_ints is defined and net_ints | length != 0
when: ubuntu_netplan_interfaces is defined and ubuntu_netplan_interfaces | length != 0
notify: Netplan Apply
- meta: flush_handlers
- name: Force the Netplan Apply command execution
ansible.builtin.meta: flush_handlers
tags:
- network_interface
- networking