03d5b39a4b
- Created ansible playbooks for setting up AMD ROCm container environment. - Added ROCm and AMD Graphics repositories in ansible tasks. - Installed necessary ROCm packages including rocm-dkms and developer tools. - Updated Dockerfile for Ollama to use version 0.13.4 and created a new Dockerfile for ROCm support. - Enhanced game station scripts for better performance and added MangoHud configuration. - Modified systemd service files to allow CPU core allocation. - Updated playbooks for Ollama and Qwen2 to include new configurations and environment variables. - Added Wake-on-LAN systemd service configuration. - Updated Terraform configurations to include secret management for the web UI. - Refactored Kubernetes deployment for open-webui to include secret handling and improved volume management.
59 lines
1.3 KiB
YAML
59 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
|