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