Skip to content
Snippets Groups Projects
Commit 937ca9de authored by Christian Elberfeld's avatar Christian Elberfeld
Browse files

update warpapi und scripte zum setzen von open closed

parent 165d2258
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
- name: clone repo
git:
repo: "https://gitlab.warpzone.ms/infrastruktur/warpapi.git"
version: "0.6"
version: "0.8"
dest: "/srv/warpapi"
force: "yes"
register: gitclone
......@@ -17,6 +17,15 @@
debug:
msg: "{{gitclone}}"
- name: Helper-Scripte erstellen
template:
src: "{{ item }}"
dest: "/srv/warpapi/{{ item }}"
mode: "u=+x"
with_items:
- set_status_open.sh
- set_status_closed.sh
- name: Konfig-Datei erstellen
template:
src: "docker-compose.yml"
......
#!/bin/sh
docker run --rm -it ruimarinho/mosquitto mosquitto_pub -h 192.168.0.201 -t warpzone/door/status -m "CLOSED" --retain
#!/bin/sh
docker run --rm -it ruimarinho/mosquitto mosquitto_pub -h 192.168.0.201 -t warpzone/door/status -m "OPEN" --retain
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment