This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
svetterIO
committed
Jul 1, 2019
1 parent
063d38f
commit 39bde04
Showing
3 changed files
with
43 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Default variables for user_registry configuration | ||
user_registry: [] | ||
|
||
id: "{{ item.id }}" |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
galaxy_info: | ||
author: IBM | ||
description: Role to configure user registry | ||
company: IBM | ||
|
||
license: Apache | ||
|
||
min_ansible_version: 2.2 | ||
|
||
galaxy_tags: | ||
- isam | ||
- ibm | ||
- configure | ||
- user_registry | ||
|
||
dependencies: | ||
- start_config |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# main task to configure user registry | ||
--- | ||
- name: Configure user registry | ||
isam: | ||
appliance: "{{ inventory_hostname }}" | ||
adminProxyProtocol: "{{ adminProxyProtocol | default(omit) }}" | ||
adminProxyHostname: "{{ adminProxyHostname | default(omit) }}" | ||
adminProxyPort: "{{ adminProxyPort | default(omit) }}" | ||
adminProxyApplianceShortName: "{{ adminProxyApplianceShortName | default(omit) }}" | ||
omitAdminProxy: "{{ omitAdminProxy | default(omit) }}" | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
lmi_port: "{{ port | default(omit) }}" | ||
log: "{{ log_level | default(omit) }}" | ||
force: "{{ force | default(omit) }}" | ||
action: "ibmsecurity.isam.aac.user_registry.user.{{ item.action }}" | ||
isamapi: "{{ item | exclude('action') }}" | ||
when: item.action and item.id == id | ||
with_items: "{{ user_registry }}" | ||
loop_control: | ||
label: "item={u'password': u'******'',u'action: u'{{ item.action }}', u'id: u'{{ item.id }}' }" | ||
notify: Commit Changes |