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.
Provided ISAM Ansible role to to create a file in the management rooot on the ISAM appliance.
- Loading branch information
Showing
3 changed files
with
44 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,7 @@ | ||
# Provide Reverse Proxy instance name | ||
#create_mgmt_root_file_instance_id: | ||
|
||
# Provide details of file to be created | ||
#create_mgmt_root_file_id: 'junction-root' | ||
#create_mgmt_root_file_name: 'test.html' | ||
#create_mgmt_root_file_contents: "{{ lookup('file', '/ansible/isam-setup-playbook/inventories/test/group_vars/restricted_nodes/junction-root/test.html') | replace('\n', '') }}" |
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,19 @@ | ||
galaxy_info: | ||
author: IBM | ||
description: Role to create a file in Management Root of Reverse Proxy | ||
company: IBM | ||
|
||
license: Apache | ||
|
||
min_ansible_version: 2.2 | ||
|
||
galaxy_tags: | ||
- isam | ||
- ibm | ||
- reverseproxy | ||
- management_root | ||
- file | ||
- create | ||
|
||
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,18 @@ | ||
- name: Create File in Management Root {{ create_mgmt_root_file_name }} | ||
isam: | ||
appliance: "{{ inventory_hostname }}" | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
lmi_port: "{{ lmi_port }}" | ||
log: "{{ log_level }}" | ||
force: "{{ force }}" | ||
action: ibmsecurity.isam.web.reverse_proxy.management_root.file.create | ||
isamapi: | ||
instance_id: "{{ create_mgmt_root_file_instance_id }}" | ||
id : "{{ create_mgmt_root_file_id }}" | ||
name : "{{ create_mgmt_root_file_name }}" | ||
contents : "{{ create_mgmt_root_file_contents }}" | ||
when: create_mgmt_root_file_name is defined and create_mgmt_root_file_instance_id is defined and create_mgmt_root_file_id is defined | ||
notify: | ||
- Commit Changes | ||
- Restart Reverse Proxy |