Adding example of specifying connection info

This commit is contained in:
John Westcott IV
2020-09-16 14:52:41 -04:00
parent 24bdbd8c58
commit ee3a90d193

View File

@@ -72,6 +72,10 @@ EXAMPLES = """
set_fact:
tower_settings: "{{ lookup('awx.awx.tower_api', 'settings/ui') }}"
- name: Load the UI settings specifying the connection info
set_fact:
tower_settings: "{{ lookup('awx.awx.tower_api', 'settings/ui' host='tower.example.com', username='admin', password=my_pass_var, verify_ssl=False) }}"
- name: Report the usernames of all users with admin privs
debug:
msg: "Admin users: {{ query('awx.awx.tower_api', 'users', query_params={ 'is_superuser': true }) | map(attribute='username') | join(', ') }}"