Skip to content

Commit

Permalink
redhat-cop#626 remove depencency of CONTROLER_USERNAME variable for o…
Browse files Browse the repository at this point in the history
…bject_diff role
  • Loading branch information
adonisgarciac authored and sean-m-sullivan committed Jun 28, 2023
1 parent db335cc commit db95089
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions roles/object_diff/tasks/hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
'has_inventory_sources': 'false',
'not__total_hosts': '0',
'not__kind': 'smart'},
host=controller_hostname, username=controller_username,
oauth_token=controller_oauthtoken, verify_ssl=controller_validate_certs,
host=controller_hostname, oauth_token=controller_oauthtoken, verify_ssl=controller_validate_certs,
return_all=true, max_objects=query_controller_api_max_objects)
}}"
no_log: "{{ controller_configuration_object_diff_secure_logging }}"
Expand Down
3 changes: 1 addition & 2 deletions roles/object_diff/tasks/instance_groups.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
- name: "Get the current controller user to determine if it is super-admin"
ansible.builtin.set_fact:
__controller_api_current_user_check_is_admin: "{{ lookup(controller_api_plugin, 'users',
query_params={'username': controller_username},
__controller_api_current_user_check_is_admin: "{{ lookup(controller_api_plugin, 'me',
host=controller_hostname, oauth_token=controller_oauthtoken, verify_ssl=controller_validate_certs)
}}"

Expand Down
3 changes: 1 addition & 2 deletions roles/object_diff/tasks/organizations.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
- name: "Get the current controller user to determine if it is super-admin"
ansible.builtin.set_fact:
__controller_api_current_user_check_is_admin: "{{ lookup(controller_api_plugin, 'users',
query_params={'username': controller_username},
__controller_api_current_user_check_is_admin: "{{ lookup(controller_api_plugin, 'me',
host=controller_hostname, oauth_token=controller_oauthtoken, verify_ssl=controller_validate_certs)
}}"
no_log: "{{ controller_configuration_object_diff_secure_logging }}"
Expand Down
3 changes: 1 addition & 2 deletions roles/object_diff/tasks/roles.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
- name: "Get the current controller user to determine if it is super-admin"
ansible.builtin.set_fact:
__controller_api_current_user_check_is_admin: "{{ lookup(controller_api_plugin, 'users',
query_params={'username': controller_username},
__controller_api_current_user_check_is_admin: "{{ lookup(controller_api_plugin, 'me',
host=controller_hostname, oauth_token=controller_oauthtoken, verify_ssl=controller_validate_certs)
}}"
no_log: "{{ controller_configuration_object_diff_secure_logging }}"
Expand Down
3 changes: 1 addition & 2 deletions roles/object_diff/tasks/teams.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
- name: "Get the current controller user to determine if it is super-admin"
ansible.builtin.set_fact:
__controller_api_current_user_check_is_admin: "{{ lookup(controller_api_plugin, 'users',
query_params={'username': controller_username},
__controller_api_current_user_check_is_admin: "{{ lookup(controller_api_plugin, 'me',
host=controller_hostname, oauth_token=controller_oauthtoken, verify_ssl=controller_validate_certs)
}}"
no_log: "{{ controller_configuration_object_diff_secure_logging }}"
Expand Down
3 changes: 1 addition & 2 deletions roles/object_diff/tasks/user_accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# tasks file for controller_ldap_settings
- name: "Get the current controller user to determine if it is super-admin"
ansible.builtin.set_fact:
__controller_api_current_user_check_is_admin: "{{ lookup(controller_api_plugin, 'users',
query_params={'username': controller_username},
__controller_api_current_user_check_is_admin: "{{ lookup(controller_api_plugin, 'me',
host=controller_hostname, oauth_token=controller_oauthtoken, verify_ssl=controller_validate_certs)
}}"
no_log: "{{ controller_configuration_object_diff_secure_logging }}"
Expand Down

0 comments on commit db95089

Please sign in to comment.