--- - name: Ensure required interfaces are present in running-config vars: lines: "set interfaces ethernet eth0 address dhcp\nset interfaces ethernet eth0\ \ speed auto\nset interfaces ethernet eth0 duplex auto\nset interfaces ethernet\ \ eth1\nset interfaces ethernet eth2\ndelete interfaces loopback lo\n" ignore_errors: true # noqa ignore-errors ansible.netcommon.cli_config: config: "{{ lines }}"