[mailman3] Remove the superuser creation
We don't need the superuser if we knew how to add the permissions to any user. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
9b1e4bca00
commit
261ec360fa
2 changed files with 0 additions and 26 deletions
|
@ -27,9 +27,6 @@ mailman_hyperkitty_admin_db_pass: changeme
|
|||
mailman_hyperkitty_db_pass: changeme
|
||||
mailman_hyperkitty_cookie_key: changeme
|
||||
mailman_hyperkitty_archiver_key: changeme
|
||||
mailman_hyperkitty_su_username: mailman
|
||||
mailman_hyperkitty_su_email: admin@fedoraproject.org
|
||||
mailman_hyperkitty_su_pass: changeme
|
||||
mailman_gunicorn_workers: 4
|
||||
mailman_domains:
|
||||
- lists.example.com
|
||||
|
|
|
@ -320,29 +320,6 @@
|
|||
notify:
|
||||
- reload mailmanweb
|
||||
|
||||
- name: Create superuser for django-admin
|
||||
ansible.builtin.command:
|
||||
cmd: mailman-web createsuperuser --username "{{ mailman_hyperkitty_su_username }}" --no-input --email "{{ mailman_hyperkitty_su_email }}"
|
||||
become_user: mailman
|
||||
register: command_result
|
||||
tags:
|
||||
- mailman
|
||||
- hyperkitty
|
||||
# Ignore error when the username already exists
|
||||
failed_when:
|
||||
- "'That username is already taken.' not in command_result.stderr"
|
||||
- "command_result.rc != 0"
|
||||
|
||||
- name: Change superuser password
|
||||
ansible.builtin.expect:
|
||||
command: mailman-web changepassword {{ mailman_hyperkitty_su_username }}
|
||||
responses:
|
||||
- 'Password:' : {{ mailman_hyperkitty_su_pass }}
|
||||
become_user: mailman
|
||||
tags:
|
||||
- mailman
|
||||
- hyperkitty
|
||||
|
||||
#
|
||||
# Plug HyperKitty into Mailman
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue