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