--- - fail: msg="Option 'services.frps.token' has to be set!" when: - services.frps.token is not defined - fail: msg="Option 'services.frps.port' has to be set!" when: - services.frps.port is not defined - fail: msg="Option 'services.frps.vhostDomain' has to be set!" when: - services.frps.vhostDomain is not defined - fail: msg="Option 'services.frps.vhostPort' has to be set!" when: - services.frps.vhostPort is not defined - fail: msg="Nginx role has to be enabled when using nginx options!" when: - services.frps.nginx.enable is true - services.nginx.enable is false - fail: msg="Option 'services.frps.nginx.vhosts' has to be set when using nginx!" when: - services.frps.nginx.enable is defined - services.frps.nginx.enable is true - services.frps.nginx.vhosts is not defined - fail: msg="Option 'services.frps.nginx.sslOnly' has to be set when using nginx!" when: - services.frps.nginx.enable is defined - services.frps.nginx.enable is true - services.frps.nginx.sslOnly is not defined - fail: msg="Option 'services.frps.nginx.ssl.cert' has to be set when using nginx with ssl!" when: - services.frps.nginx.enable is defined - services.frps.nginx.enable is true - services.frps.nginx.ssl.enable is defined - services.frps.nginx.ssl.enable is true - services.frps.nginx.ssl.cert is not defined - fail: msg="Option 'services.frps.nginx.ssl.privkey' has to be set when using nginx with ssl!" when: - services.frps.nginx.enable is defined - services.frps.nginx.enable is true - services.frps.nginx.ssl.enable is defined - services.frps.nginx.ssl.enable is true - services.frps.nginx.ssl.privkey is not defined