updated for mirror
diff --git a/tasks/with_no_proxy.yml b/tasks/with_no_proxy.yml
index baffd62..cccbc65 100644
--- a/tasks/with_no_proxy.yml
+++ b/tasks/with_no_proxy.yml
@@ -5,16 +5,14 @@
 
 - name: Clear the local mirror data directory with no proxy
   shell: "{{ apigee_service }} apigee-mirror clean"
-  register: result
 
 - name: Sync the local mirror with only new rpms with no proxy
   shell: "{{ apigee_service }} apigee-mirror sync --only-new-rpms apigeereleasever={{ apigee_mirror_version }}"
-  when: all_rpms is not defined and not all_rpms == bool | True
+  when: all_rpms is not defined and not all_rpms | bool == True
 
 - name: Sync the local mirror with all rpms with no proxy
   shell: "{{ apigee_service }} apigee-mirror sync apigeereleasever={{ apigee_mirror_version }}"
-  when: all_rpms is defined and all_rpms == bool | True
+  when: all_rpms is defined and all_rpms | bool == True
 
 - name: Create archive with no proxy
   shell: "{{ apigee_service }} apigee-mirror package"
-  register: result
diff --git a/tasks/with_proxy.yml b/tasks/with_proxy.yml
index 5646110..9144a5e 100644
--- a/tasks/with_proxy.yml
+++ b/tasks/with_proxy.yml
@@ -7,10 +7,8 @@
     http_proxy: "{{ http_proxy }}"
     https_proxy: "{{ https_proxy }}"
 
-
 - name: Clear the local mirror data directory with proxy
   shell: "{{ apigee_service }} apigee-mirror clean"
-  register: result
   environment:
     no_proxy: "{{ no_proxy }}"
     http_proxy: "{{ http_proxy }}"
@@ -18,7 +16,8 @@
 
 - name: Sync the local mirror with only new rpms with proxy
   shell: "{{ apigee_service }} apigee-mirror sync --only-new-rpms apigeereleasever={{ apigee_mirror_version }}"
-  when: all_rpms is not defined and not all_rpms == bool | True
+  when: all_rpms is not defined and not all_rpms | bool == True
+
   environment:
     no_proxy: "{{ no_proxy }}"
     http_proxy: "{{ http_proxy }}"
@@ -26,7 +25,7 @@
 
 - name: Sync the local mirror with all rpms with proxy
   shell: "{{ apigee_service }} apigee-mirror sync apigeereleasever={{ apigee_mirror_version }}"
-  when: all_rpms is defined and all_rpms == bool | True
+  when: all_rpms is defined and all_rpms | bool == True
   environment:
     no_proxy: "{{ no_proxy }}"
     http_proxy: "{{ http_proxy }}"
@@ -34,7 +33,6 @@
 
 - name: Create archive with proxy
   shell: "{{ apigee_service }} apigee-mirror package"
-  register: result
   environment:
     no_proxy: "{{ no_proxy }}"
     http_proxy: "{{ http_proxy }}"