浏览代码

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 年前
父节点
当前提交
e88fb57cba
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      roles/common/tasks/google_auth.yml

+ 3
- 0
roles/common/tasks/google_auth.yml 查看文件

@@ -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"

正在加载...
取消
保存