Browse Source

Skip the google authenticator generation if we're running as vagrant. Vagrant can't sudo to the sovereign test user so this won't work.

Justin Plock 11 years ago
parent
commit
e88fb57cba
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      roles/common/tasks/google_auth.yml

+ 3
- 0
roles/common/tasks/google_auth.yml View File

@@ -39,10 +39,13 @@
39 39
            creates=/home/{{ main_user_name }}/.google_authenticator
40 40
   sudo: yes
41 41
   sudo_user: "{{ main_user_name }}"
42
+  when: ansible_ssh_user != "vagrant"
42 43
 
43 44
 - name: Retrieve generated keys from server
44 45
   fetch: src=/home/{{ main_user_name }}/.google_authenticator
45 46
          dest=/tmp/sovereign-google-auth-files
47
+  when: ansible_ssh_user != "vagrant"
46 48
 
47 49
 - pause: seconds=5
48 50
          prompt="Your Google Authentication keys are in /tmp/sovereign-google-auth-files. Press any key to continue..."
51
+  when: ansible_ssh_user != "vagrant"

Loading…
Cancel
Save