upt playbook

This commit is contained in:
jaydee 2023-09-18 16:16:59 +02:00
parent 69f719f5c4
commit 1c900a1c3d
2 changed files with 20 additions and 1 deletions

View File

@ -42,7 +42,7 @@
- name: Start HA main
uri:
url: "http://192.168.77.106:9000/api/stacks/2/stop?endpointId=2"
url: "http://192.168.77.106:9000/api/stacks/2/start?endpointId=2"
method: POST
body_format: form-urlencoded
return_content: yes

19
playbooks/wol_enable.yml Normal file
View File

@ -0,0 +1,19 @@
- hosts: containers
name: Enable WOL
gather_facts: false
tasks:
- name: Creating config
ansible.builtin.copy:
dest: "/etc/systemd/system/wol.service"
content: |
[Unit]
Description=Enable Wake On Lan
[Service]
Type=oneshot
ExecStart = /usr/sbin/ethtool --change enp3s0 wol g
[Install]
WantedBy=basic.target
owner: root
mode: '0744'