From 8a98312799aaafaae734ab6b115db1aa170ff704 Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 18 Sep 2023 17:12:38 +0200 Subject: [PATCH] upt playbook --- playbooks/wol_enable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: