diff --git a/playbooks/wol_enable.yml b/playbooks/wol_enable.yml index 942d62d..adb7470 100644 --- a/playbooks/wol_enable.yml +++ b/playbooks/wol_enable.yml @@ -7,8 +7,8 @@ var: ansible_facts.interfaces - name: Display all interfaces name debug: msg="{{ item }}" - when: "{{ item }} | map('match','ens.*')" - with_items: "{{ ansible_facts.interfaces }}" + when: "{{ item }} | map('match','enp.*')" + with_items: "{{ ansible_interfaces }}" - name: Creating config become: yes ansible.builtin.copy: