diff --git a/playbooks/wol_enable.yml b/playbooks/wol_enable.yml index 0b95edf..6e37502 100644 --- a/playbooks/wol_enable.yml +++ b/playbooks/wol_enable.yml @@ -4,7 +4,7 @@ tasks: - name: Display all interfaces name debug: - var: ansible_facts.interfaces + var: "{{ ansible_interfaces | select('match','ens.*') | list | first }}" - name: Creating config become: yes ansible.builtin.copy: