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_access_control_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
svetterIO committed Jul 8, 2019
1 parent 9723627 commit 83c7825
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions aac/configure_access_control_attributes/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Default variables for configuration of access control attributes
17 changes: 17 additions & 0 deletions aac/configure_access_control_attributes/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
galaxy_info:
author: IBM
description: Role to confiure access control attributes
company: IBM

license: Apache

min_ansible_version: 2.2

galaxy_tags:
- isam
- ibm
- configure
- attributes

dependencies:
- start_config
37 changes: 37 additions & 0 deletions aac/configure_access_control_attributes/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# main task to configure access control attributes
# example:
# access_control_attributes:
# - name: testAttribute
# description: attribute for policy decision
# attributeURI: testAttribute
# type:
# policy: true
# risk: false
# category: Environment
# datatype: Boolean
# predefined: false
# issuer: ""
# matcher: 1
# storageDomain:
# device: false
# session: false
# behavior: false
---
- name: Configure access control attributes
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.attributes.set
isamapi: "{{ item }}"
when: item is defined
with_items: "{{ access_control_attributes }}"
notify: Commit Changes

0 comments on commit 83c7825

Please sign in to comment.