No description
| defaults | ||
| handlers | ||
| meta | ||
| tasks | ||
| tests | ||
| vars | ||
| README.md | ||
ansible-role-shelly-fwupdate
Used to update the firmware on shelly devices via MQTT.
Requirements
- ansible >= 2.8
- Python Module: paho-mqtt
- needs the var 'shelly_fwupdate_mqtt_name' per host defined; e.g: shellyswitch25-C4A8F3
Role Variables
| Variable Name | defaults | options/type | Description |
|---|---|---|---|
| shelly_fwupdate_mqtt_server | 'localhost' | string | FQDN/IP of the MQTT Broker |
| shelly_fwupdate_mqtt_server_port | '1883' | string | port the MQTT Broker listens on |
| shelly_fwupdate_broker_user | 'hero' | string | username to connect to the Broker |
| shelly_fwupdate_broker_pass | 'supersecret' | string | password for the username defined above |
| shelly_fwupdate_mqtt_name | none | string | per host definition of the mqtt name used by your shelly |
Dependencies
None, at the moment!
Example Playbook
---
- hosts: shellies
vars:
shelly_fwupdate_mqtt_server: 'mqtt.server.net'
shelly_fwupdate_mqtt_server_port: '1883'
shelly_fwupdate_broker_user: 'mqtt_user'
shelly_fwupdate_broker_pass: 'supersecretNOOOT'
delegation_host: 'the_host.that.has.paho-mqtt.installed'
gather_facts: False
user: root
roles:
- role: ansible-role-shelly-fwupdate
delegate_to: "{{ delegation_host }}"
License
BSD
Author Information
Created in 2020 by Thomas.