mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-01 15:38:33 +02:00
bitwarden
This commit is contained in:
@ -8,10 +8,14 @@
|
||||
var: ansible_facts.interfaces
|
||||
- name: Get wifi adapter
|
||||
set_fact:
|
||||
wifi_adapter: '{{ item }}'
|
||||
active_adapter: '{{ item }}'
|
||||
loop: '{{ ansible_facts.interfaces }}'
|
||||
when: 'item.startswith("eno")'
|
||||
|
||||
- name: Display all interfaces name
|
||||
debug:
|
||||
msg: "{{ ansible_default_ipv4.interface }}"
|
||||
|
||||
|
||||
- name: Creating config
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
@ -23,7 +27,7 @@
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart = /usr/sbin/ethtool --change {{ wifi_adapter }} wol g
|
||||
ExecStart = /usr/sbin/ethtool --change {{ ansible_default_ipv4.interface }} wol g
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
|
Reference in New Issue
Block a user