Skip to content

Commit

Permalink
Made snapshot optional and added handler for restarting AAC Runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
ram-ibm committed Jan 18, 2018
1 parent 67c104e commit 24ffe8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions set_runtime_tuning_parameter/defaults/main.yml
Expand Up @@ -5,5 +5,5 @@
# - runtime_tuning_parameter_option: "Option 2"
# runtime_tuning_parameter_value: "Value 2"

# Comment to be used for creating a snapshot file
set_runtime_tuning_parameter_comment: "Automated Snapshot Before Setting Runtime Tuning Parameters"
# Set Comment to be used for creating a snapshot file, snapshot will be skipped unless comment is provided
#set_runtime_tuning_parameter_comment: "Automated Snapshot Before Setting Runtime Tuning Parameters"
8 changes: 5 additions & 3 deletions set_runtime_tuning_parameter/tasks/main.yml
@@ -1,4 +1,4 @@
- name: Snapshot Appliance Before Setting Runtime Tuning Parameters
- name: Snapshot Appliance Before Setting Runtime Tuning Parameters
isam:
appliance: "{{ inventory_hostname }}"
username: "{{ username }}"
Expand All @@ -9,6 +9,7 @@
action: ibmsecurity.isam.base.snapshots.create
isamapi:
comment: "{{ set_runtime_tuning_parameter_comment }}"
when: set_runtime_tuning_parameter_comment is defined

- name: Set Runtime Tuning Parameters
isam:
Expand All @@ -24,5 +25,6 @@
value: "{{ item.runtime_tuning_parameter_value }}"
with_items: "{{ runtime_tuning_parameters }}"
when: runtime_tuning_parameters is defined
notify: Commit Changes

notify:
- Commit Changes
- Restart AAC Runtime

0 comments on commit 24ffe8e

Please sign in to comment.