This commit is contained in:
jaydee committed 2025-03-18 17:24:20 +01:00
1 parent 5792932507
commit 3f601f92a0
13 files changed
+414 -91

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
- hosts: datacenter
name: Switch server
ignore_unreachable: false
tasks:
- name: Unifi Modifi
ansible.builtin.uri:
url: http://192.168.77.101:8123/api/webhook/-WcEse1k5QxIBlQu5B0u-5Esb?server=nas
method: POST
when: inventory_hostname == destination and destination == "nas.home.lan"
- name: Unifi Modifi
ansible.builtin.uri:
url: http://192.168.77.101:8123/api/webhook/-WcEse1k5QxIBlQu5B0u-5Esb?server=m-server
method: POST
when: inventory_hostname == destination and destination == "m-server.home.lan"