Skip to content

Commit

Permalink
add sudoers tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanbekker authored Jun 14, 2018
1 parent fda512e commit 8cb458f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions roles/create-sudo-user/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: Create Sudo User
user: name=docker
groups=sudo
shell=/bin/bash
generate_ssh_key=no
state=present

- name: Set Passwordless SSH Access for docker user
copy: src=sudoers
dest=/etc/sudoers.d
mode=0440

0 comments on commit 8cb458f

Please sign in to comment.