1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556---
- 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="This role depends on postgres!"
when:
- services.postgresql.enable is not defined or services.postgresql.enable is not true
- fail: msg="Option 'services.pleroma.configFile' has to be set!"
when:
- services.pleroma.configFile is not defined
- fail: msg="Option 'services.pleroma.secretsContent' has to be set!"
when:
- services.pleroma.secretsContent is not defined
- fail: msg="Nginx role has to be enabled when using nginx options!"
when:
- services.pleroma.nginx.enable is true
- services.nginx.enable is false
- fail: msg="Option 'services.pleroma.nginx.domain' has to be set when using nginx!"
when:
- services.pleroma.nginx.enable is defined
- services.pleroma.nginx.enable is true
- services.pleroma.nginx.domain is not defined
- fail: msg="Option 'services.pleroma.nginx.sslOnly' has to be set when using nginx!"
when:
- services.pleroma.nginx.enable is defined
- services.pleroma.nginx.enable is true
- services.pleroma.nginx.sslOnly is not defined
- fail: msg="Option 'services.pleroma.nginx.ssl.cert' has to be set when using nginx with ssl!"
when:
- services.pleroma.nginx.enable is defined
- services.pleroma.nginx.enable is true
- services.pleroma.nginx.ssl.enable is defined
- services.pleroma.nginx.ssl.enable is true
- services.pleroma.nginx.ssl.cert is not defined
- fail: msg="Option 'services.pleroma.nginx.ssl.privkey' has to be set when using nginx with ssl!"
when:
- services.pleroma.nginx.enable is defined
- services.pleroma.nginx.enable is true
- services.pleroma.nginx.ssl.enable is defined
- services.pleroma.nginx.ssl.enable is true
- services.pleroma.nginx.ssl.privkey is not defined