Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore email authentication is optional. #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ authentik_config_redis_database: 0
authentik_config_redis_url: "redis://{{ authentik_config_redis_hostname }}:{{ authentik_config_redis_port }}/{{ authentik_config_redis_database }}"

# Turn true to use StartTLS (usually on port 587)
authentik_email_use_tls: false
authentik_email_use_tls: "false"
# Turn true to use SSL (usually on port 465)
authentik_email_use_ssl: false
authentik_email_use_ssl: "false"
authentik_email_host: ''
authentik_email_port: ''
authentik_email_username: ''
Expand Down
6 changes: 1 addition & 5 deletions tasks/validate_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
ansible.builtin.fail:
msg: >-
You need to define a required configuration setting (`{{ item }}`) to correctly set up email via SMTP.
when: "authentik_email_host !='' and vars[item] == ''"
with_items:
- authentik_email_username
- authentik_email_password
- authentik_email_port
when: "authentik_email_host != '' and ( authentik_email_port == '' or authentik_email_username != '' and authentik_email_password == '' )"

- name: (Deprecation) Catch and report renamed settings
ansible.builtin.fail:
Expand Down