Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Improve testing envionment for sudo-with-a-password
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Lavine committed Aug 21, 2017
1 parent abd2558 commit b56852c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vagrant/roles/user-ssh/tasks/main.yml
@@ -1,6 +1,6 @@
---
- name: Set authorized key for user vagrant copying it from current user
authorized_key:
user: vagrant
user: "{{ user }}"
state: present
key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_rsa.pub') }}"
6 changes: 6 additions & 0 deletions vagrant/setup-test-vms.yml
@@ -1,6 +1,7 @@
- hosts: all
roles:
- role: user-ssh
user: vagrant
become: yes
become_user: root

Expand All @@ -17,3 +18,8 @@
# Crypted version of "password"
password: $6$ZBtzwTi5YgUbr1cT$jVTtaH6lVVTndZJLHqcWtZoxPS0Siz/ms8bOKA/F/r1Np0zeptDERYIfbmRN0dLbu9Z7S./bIGzGR9nUXl59W/
become: yes
roles:
- role: user-ssh
user: askpass
become: yes
become_user: root

0 comments on commit b56852c

Please sign in to comment.