tobias-richter / ansible-tasmota

Ansible Role for managing tasmota devices with tasmota commands
Apache License 2.0
31 stars 13 forks source link

Add check if item.value is set #8

Closed deveth0 closed 3 years ago

deveth0 commented 3 years ago

It's a bit hacky to set values only for certain hosts using group_vars or host_vars afaics. Using this check, it becomes possible to configure a value with:

    - command: Module1
      value: "{{ module1 | default(None)}}"