updated error handling for creating a mirror.
diff --git a/tasks/main.yml b/tasks/main.yml
index 469309e..5424592 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -36,7 +36,7 @@
backrefs: yes
backup: yes
regexp: "^(Defaults)(.*)(requiretty)"
- line: '\1\2\!\3'
+ line: '\1\2!\3'
state: present
validate: '/usr/sbin/visudo -cf %s'
diff --git a/tests/formatted-lines.txt b/tests/formatted-lines.txt
new file mode 100644
index 0000000..987c3b6
--- /dev/null
+++ b/tests/formatted-lines.txt
@@ -0,0 +1 @@
+Defaults !requiretty
diff --git a/tests/test.yml b/tests/test.yml
index b54476f..bb65ebb 100644
--- a/tests/test.yml
+++ b/tests/test.yml
@@ -1,5 +1,17 @@
---
- hosts: localhost
remote_user: root
- roles:
- - apigee-opdk-setup-local-repository-archive
\ No newline at end of file
+# roles:
+# - apigee-opdk-setup-local-repository-archive
+
+ tasks:
+ - name: Update to include tty temporarily
+# become: yes
+ lineinfile:
+ path: formatted-lines.txt
+ backrefs: yes
+ backup: yes
+ regexp: "^(Defaults)(.*)(requiretty)"
+ line: '\1\2!\3'
+ state: present
+# validate: '/usr/sbin/visudo -cf %s'
\ No newline at end of file