No description
Find a file
2020-04-02 10:46:39 +00:00
defaults first commit 2020-03-17 12:06:12 +00:00
handlers first commit 2020-03-17 12:06:12 +00:00
meta first commit 2020-03-17 12:06:12 +00:00
tasks Remove deletation host; should be done in play 2020-04-02 10:27:24 +00:00
tests first commit 2020-03-17 12:06:12 +00:00
vars first commit 2020-03-17 12:06:12 +00:00
README.md ppl should know how to run a playbook 2020-04-02 10:46:39 +00:00

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.