1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768---
- fail: msg="This role currently only supports ArchLinux!"
when:
- ansible_distribution != "Archlinux"
- fail: msg="This Role only works when Option 'system.enableOwnRepos' is true!"
when:
- system.enableOwnRepos is false
- fail: msg="This Role depends on influxdb!"
when:
- services.influxdb.enable is false
- fail: msg="This Role depends on serial2tcp!"
when:
- services.serial2tcp.enable is false
- fail: msg="This Role depends on mosquitto!"
when:
- services.mosquitto.enable is false
- fail: msg="This Role depends on zigbee2mqtt!"
when:
- services.zigbee2mqtt.enable is false
- fail: msg="This Role depends on mbusd!"
when:
- services.mbusd.enable is false
- fail: msg="Option 'services.smartied.config' has to be set!"
when:
- services.smartied.config is not defined
- fail: msg="Nginx role has to be enabled when using nginx options!"
when:
- services.smartied.nginx.enable is true
- services.nginx.enable is false
- fail: msg="Option 'services.smartied.nginx.domain' has to be set when using nginx!"
when:
- services.smartied.nginx.enable is defined
- services.smartied.nginx.enable is true
- services.smartied.nginx.domain is not defined
- fail: msg="Option 'services.smartied.nginx.sslOnly' has to be set when using nginx!"
when:
- services.smartied.nginx.enable is defined
- services.smartied.nginx.enable is true
- services.smartied.nginx.sslOnly is not defined
- fail: msg="Option 'services.smartied.nginx.ssl.cert' has to be set when using nginx with ssl!"
when:
- services.smartied.nginx.enable is defined
- services.smartied.nginx.enable is true
- services.smartied.nginx.ssl.enable is defined
- services.smartied.nginx.ssl.enable is true
- services.smartied.nginx.ssl.cert is not defined
- fail: msg="Option 'services.smartied.nginx.ssl.privkey' has to be set when using nginx with ssl!"
when:
- services.smartied.nginx.enable is defined
- services.smartied.nginx.enable is true
- services.smartied.nginx.ssl.enable is defined
- services.smartied.nginx.ssl.enable is true
- services.smartied.nginx.ssl.privkey is not defined