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.
New role: configure_server_connections
- Loading branch information
sploppa
committed
Jul 26, 2018
1 parent
1529830
commit 5f537ca
Showing
3 changed files
with
42 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,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 }}" |
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 server connections | ||
company: IBM | ||
|
||
license: Apache | ||
|
||
min_ansible_version: 2.2 | ||
|
||
galaxy_tags: | ||
- isam | ||
- ibm | ||
- configure | ||
- server_connection | ||
|
||
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,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 |