--- - name: Reload interface with ifdown ; ifup shell: | ifdown {{ item }} ; ifup {{ item }} loop: "{{ reload_interfaces | unique }}" - name: Reload interface with nmcli command: nmcli conn up {{ item }} loop: "{{ reload_interfaces | unique }}"