-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix credentials defaults in hosts and users roles
- make the default for the username to be omitted instead of admin - fix a few spurious defaults (we should use the default of the module not overwrite it without reason) - make the default for the password to be omitted - correct a few booleans expressed as strings - add a default password for all users, it can be set empty and be ignored as well
- Loading branch information
Showing
3 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,18 +3,19 @@ | |
awx.awx.tower_user: | ||
auditor: "{{ tower_user_accounts_item.is_auditor | default(tower_user_accounts_item.is_system_auditor | default('false')) }}" | ||
username: "{{ tower_user_accounts_item.user | default(tower_user_accounts_item.username) }}" | ||
password: "{{ tower_user_accounts_item.password | default('change_me') }}" | ||
email: "{{ tower_user_accounts_item.email | default('[email protected]') }}" | ||
# the 'true' in the second default leads to no password being set if the default password is empty | ||
password: "{{ tower_user_accounts_item.password | default(tower_user_default_password | default(omit, true)) }}" | ||
email: "{{ tower_user_accounts_item.email | default(omit) }}" | ||
first_name: "{{ tower_user_accounts_item.firstname | default(tower_user_accounts_item.first_name | default(omit)) }}" | ||
last_name: "{{ tower_user_accounts_item.lastname | default(tower_user_accounts_item.last_name | default(omit)) }}" | ||
superuser: "{{ tower_user_accounts_item.is_superuser | default('false') }}" | ||
update_secrets: "{{ tower_user_accounts_item.update_secrets | default('true') }}" | ||
state: "{{ tower_user_accounts_item.state | default(tower_state | default('present')) }}" | ||
is_superuser: "{{ tower_user_accounts_item.is_superuser | default(tower_user_accounts_item.superuser | default(omit)) }}" | ||
update_secrets: "{{ tower_user_accounts_item.update_secrets | default(omit) }}" | ||
state: "{{ tower_user_accounts_item.state | default(tower_state | default(omit)) }}" | ||
tower_host: "{{ tower_hostname }}" | ||
tower_username: "{{ tower_username | default('admin') }}" | ||
tower_password: "{{ tower_password }}" | ||
tower_username: "{{ tower_username | default(omit) }}" | ||
tower_password: "{{ tower_password | default(omit) }}" | ||
tower_oauthtoken: "{{ tower_oauthtoken | default(omit) }}" | ||
tower_verify_ssl: "{{ tower_verify_ssl | default('false') }}" | ||
tower_verify_ssl: "{{ tower_verify_ssl | default(false) }}" | ||
tower_config_file: "{{ tower_config_file | default(omit) }}" | ||
loop: "{{ tower_user_accounts }}" | ||
loop_control: | ||
|