updated playbooks with backup and restore
diff --git a/README.md b/README.md
index 3ebede3..24abec1 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,12 @@
-Role Name
-=========
+Apigee OPDK Backup
+==================
-A brief description of the role goes here.
+This role performs a backup using the apigee-service utility.
Requirements
------------
-Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
+It is expected that the apigee-service utility is available.
Role Variables
--------------
diff --git a/tasks/main.yml b/tasks/main.yml
index 079235f..9c5b1ce 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,12 +1,17 @@
---
# tasks file for apigee-opdk-backup
-- name: Stop component {{ component_profile }}
- shell: '{{ apigee_service }} {{ component_profile }} stop'
- when: component_profile != 'apigee-postgresql'
+- name: Stop component {{ component_name }}
+ shell: '{{ apigee_service }} {{ component_name }} stop'
+ when: component_name != 'apigee-postgresql' and component_name != 'all'
-- name: Backup component {{ component_profile }}
- shell: '{{ apigee_service }} {{ component_profile }} backup'
+- name: Backup component {{ component_name }}
+ shell: '{{ apigee_service }} {{ component_name }} backup'
+ when: component_name != 'all'
-- name: Start component {{ component_profile }}
- shell: '{{ apigee_service }} {{ component_profile }} start'
- when: component_profile != 'apigee-postgresql'
+- name: Backup component {{ component_name }}
+ shell: '{{ apigee_all }} backup'
+ when: component_name == 'all'
+
+- name: Start component {{ component_name }}
+ shell: '{{ apigee_service }} {{ component_name }} start'
+ when: component_name != 'apigee-postgresql' and component_name != 'all'