ansible/playbooks/modify_espresense.yml

33 lines
888 B
YAML
Raw Normal View History

2024-06-03 00:07:22 +02:00
- hosts: nas
name: Reconfigure espresense
ignore_unreachable: false
tasks:
- name: Check that you can connect (GET) to a page and it returns a status 200
ansible.builtin.uri:
url: http://192.168.77.150
method: POST
body_format: form-urlencoded
body:
2024-06-03 00:21:49 +02:00
language: "en"
2024-06-03 00:26:18 +02:00
room: "worker"
2024-06-03 00:17:14 +02:00
wifi_timeout: ""
portal_timeout: ""
2024-06-03 00:26:18 +02:00
mqtt_host: "{{ MQTT_BROKER }}"
2024-06-03 00:17:14 +02:00
mqtt_port: "1883"
2024-06-03 00:26:18 +02:00
mqtt_user: "{{ MQTT_USER }}"
mqtt_pass: "{{ MQTT_PASS }}"
2024-06-03 00:17:14 +02:00
discovery: "1"
discovery_prefix: ""
pub_tele: "1"
pub_rooms: "1"
pub_devices: "1"
update: ""
2024-06-03 00:07:22 +02:00
ignore_errors: true
2024-06-03 00:22:58 +02:00
- name: Check that you can connect (GET) to a page and it returns a status 200
ansible.builtin.uri:
url: http://192.168.77.150/restart
method: POST
ignore_errors: true