Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
+1 role: configure_user_registry
Browse files Browse the repository at this point in the history
  • Loading branch information
svetterIO committed Jul 1, 2019
1 parent 063d38f commit 39bde04
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aac/configure_user_registry/defaults/main.yml
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 }}"
17 changes: 17 additions & 0 deletions aac/configure_user_registry/meta/main.yml
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
22 changes: 22 additions & 0 deletions aac/configure_user_registry/tasks/main.yml
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

0 comments on commit 39bde04

Please sign in to comment.