updated error handling for creating a mirror.
diff --git a/tasks/main.yml b/tasks/main.yml
index 6ff875a..e0518dd 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -26,10 +26,11 @@
src: "{{ local_apigee_path }}/{{ apigee_archive_name }}"
dest: "{{ apigeerepobasepath }}/{{ apigee_archive_name }}"
rsync_opts: ['--partial-dir={{ opdk_installer_path }}']
- register: results
- failed_when: "'sudo: sorry, you must have a tty to run sudo' in results.stderr"
+# register: results
+# failed_when: "'sudo: sorry, you must have a tty to run sudo' in results.stderr"
rescue:
- name: Update to include tty
+ become: yes
lineinfile:
path: /etc/sudoers
backrefs: yes
@@ -44,6 +45,7 @@
dest: "{{ apigeerepobasepath }}/{{ apigee_archive_name }}"
rsync_opts: ['--partial-dir={{ opdk_installer_path }}']
+
- name: Unarchive on target node
become: true
unarchive: