Files
a13labs.infra/ansible/roles/wol/tasks/main.yml
T
alexandre.pires ec740f458f feat(vaultwarden): add SMTP configuration options and enhance signup settings
- Introduced SMTP settings for Vaultwarden including host, port, security, and authentication details.
- Added variables for signup verification, 2FA settings, password hints, and logging options.
- Updated Vaultwarden deployment to utilize new SMTP configurations.
- Enhanced Grafana module to support dynamic dashboard and datasource provisioning.
- Added LLM proxy configuration for Open Web UI with necessary environment variables.
2026-05-30 23:24:44 +02:00

60 lines
1.3 KiB
YAML

---
- name: Install ethtool
become: true
ansible.builtin.package:
name: ethtool
state: present
- name: Enable WOL on the network interface
become: true
ansible.builtin.command: ethtool -s {{ network_interface }} wol g
changed_when: false
- name: Create systemd-networkd WOL config
become: true
ansible.builtin.copy:
dest: "/etc/systemd/network/10-wol.network"
content: |
[Match]
Name={{ network_interface }}
[Link]
WakeOnLan=magic
owner: root
group: root
mode: "0644"
- name: Create systemd WOL config
become: true
ansible.builtin.copy:
dest: "/etc/systemd/system/wol.service"
content: |
[Unit]
Description=Enable Wake-on-LAN
After=network-online.target
[Service]
Type=oneshot
ExecStart=/sbin/ethtool --change {{ network_interface }} wol g
[Install]
WantedBy=network-online.target
owner: root
group: root
mode: "0644"
- name: Enable and restart systemd-networkd
become: true
ansible.builtin.systemd:
name: wol.service
state: started
enabled: true
- name: Confirm WOL setting applied
become: true
ansible.builtin.command: ethtool {{ network_interface }}
register: wol_status
changed_when: false
- name: Show WOL setting
ansible.builtin.debug:
var: wol_status.stdout_lines