From b3d90a28a785ef56190535095b6497e3126b7659 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 10 Apr 2019 20:27:12 +0200 Subject: [PATCH] fix issue --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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