--- - fail: msg="This Role only works when Option 'system.enableOwnRepos' is true!" when: - services.fritzboxExporter.enable is defined - services.fritzboxExporter.enable is true - system.enableOwnRepos is false - fail: msg="Nginx role has to be enabled when using nginx options!" when: - services.fritzboxExporter.nginx.enable is true - services.nginx.enable is false - fail: msg="Option 'services.fritzboxExporter.nginx.domain' has to be set when using nginx!" when: - services.fritzboxExporter.nginx.enable is defined - services.fritzboxExporter.nginx.enable is true - services.fritzboxExporter.nginx.domain is not defined - fail: msg="Option 'services.fritzboxExporter.nginx.sslOnly' has to be set when using nginx!" when: - services.fritzboxExporter.nginx.enable is defined - services.fritzboxExporter.nginx.enable is true - services.fritzboxExporter.nginx.sslOnly is not defined - fail: msg="Option 'services.fritzboxExporter.nginx.ssl.cert' has to be set when using nginx with ssl!" when: - services.fritzboxExporter.nginx.enable is defined - services.fritzboxExporter.nginx.enable is true - services.fritzboxExporter.nginx.ssl.enable is defined - services.fritzboxExporter.nginx.ssl.enable is true - services.fritzboxExporter.nginx.ssl.cert is not defined - fail: msg="Option 'services.fritzboxExporter.nginx.ssl.privkey' has to be set when using nginx with ssl!" when: - services.fritzboxExporter.nginx.enable is defined - services.fritzboxExporter.nginx.enable is true - services.fritzboxExporter.nginx.ssl.enable is defined - services.fritzboxExporter.nginx.ssl.enable is true - services.fritzboxExporter.nginx.ssl.privkey is not defined