mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49:26 +00:00
upt playbook
This commit is contained in:
parent
69f719f5c4
commit
1c900a1c3d
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
- name: Start HA main
|
- name: Start HA main
|
||||||
uri:
|
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
|
method: POST
|
||||||
body_format: form-urlencoded
|
body_format: form-urlencoded
|
||||||
return_content: yes
|
return_content: yes
|
||||||
|
19
playbooks/wol_enable.yml
Normal file
19
playbooks/wol_enable.yml
Normal 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'
|
Loading…
x
Reference in New Issue
Block a user