fix issue

This commit is contained in:
vincent 2019-04-10 20:27:12 +02:00
parent 6664342be4
commit b3d90a28a7

View File

@ -29,12 +29,12 @@
- debug: - debug:
msg: "{{ ansible_default_ipv4.interface }}" msg: "{{ ansible_default_ipv4.type }}"
- name: set bridge template - name: set bridge template
template: template:
dest: /etc/netctl/bridge # required. Location to render the template to on the remote machine. 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. 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 become: yes
notify: bridge_enable notify: bridge_enable