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

Commit

Permalink
New role: configure_server_connections
Browse files Browse the repository at this point in the history
  • Loading branch information
sploppa committed Jul 26, 2018
1 parent 1529830 commit 5f537ca
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aac/configure_server_connections/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Default variables for configuration of server connections
server_connections: []

# Default variables to filter for configuration of specific server connections at runtime
name: "{{ item.name }}"
17 changes: 17 additions & 0 deletions aac/configure_server_connections/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 server connections
company: IBM

license: Apache

min_ansible_version: 2.2

galaxy_tags:
- isam
- ibm
- configure
- server_connection

dependencies:
- start_config
20 changes: 20 additions & 0 deletions aac/configure_server_connections/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# main task to configure server connections
---
- name: Configure server connections
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.server_connections.{{ item.type }}.set"
isamapi: "{{ item | exclude('type') }}"
when: item.type and item.name == name
with_items: "{{ server_connections }}"
notify: Commit Changes

0 comments on commit 5f537ca

Please sign in to comment.