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

Do not run "Check for default SS user" and "Check for SS user" when archivematica_src_configure_ss is false #277

Merged
merged 1 commit into from
Feb 13, 2020
Merged
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
11 changes: 4 additions & 7 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@
executable: /bin/bash
environment: "{{ archivematica_src_ss_environment }}"
register: ss_default_test_user
when: archivematica_src_configure_ss|bool

- debug:
msg: "The SS default test user is already configured and never was used: this user will be deleted."
when:
- ss_default_test_user.stdout != ""
- archivematica_src_configure_ss|bool
when: archivematica_src_configure_ss|bool and ss_default_test_user.stdout != ""

# Delete default SS superuser test
- name: "Delete default SS superuser"
Expand All @@ -56,13 +55,11 @@
executable: /bin/bash
environment: "{{ archivematica_src_ss_environment }}"
register: ss_user
when: archivematica_src_configure_ss|bool

- debug:
msg: "The SS user {{ archivematica_src_configure_ss_user }} is already configured: The SS superuser will not be created."
when: ss_user.stdout != "" and archivematica_src_configure_ss|bool
- (ss_user.stdout != "" or ss_user_my.stdout != "")
- archivematica_src_configure_ss|bool

when: archivematica_src_configure_ss|bool and ss_user.stdout != ""

- name: "Create SS superuser"
django_manage:
Expand Down