diff --git a/tasks/main.yml b/tasks/main.yml index 49f0c06..0ff8f41 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -29,12 +29,12 @@ - debug: - msg: "{{ ansible_default_ipv4.interface }}" + msg: "{{ ansible_default_ipv4.type }}" - name: set bridge template template: dest: /etc/netctl/bridge # required. Location to render the template to on the remote machine. src: bridge.j2 # required. Path of a Jinja2 formatted template on the Ansible controller. This can be a relative or absolute path. - when: ansible_default_ipv4.interface is match("e*") + when: ansible_default_ipv4.type == "ether" become: yes notify: bridge_enable \ No newline at end of file