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

Commit

Permalink
Create management root file
Browse files Browse the repository at this point in the history
Provided ISAM Ansible role to to create a file in the management rooot on the ISAM appliance.
  • Loading branch information
dreezey committed Jul 12, 2017
1 parent 69d2945 commit d0b7465
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
7 changes: 7 additions & 0 deletions create_mgmt_root_file/defaults/main.yml
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', '') }}"
19 changes: 19 additions & 0 deletions create_mgmt_root_file/meta/main.yml
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
18 changes: 18 additions & 0 deletions create_mgmt_root_file/tasks/main.yml
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

0 comments on commit d0b7465

Please sign in to comment.