Create user
This commit is contained in:
parent
5289206f14
commit
59a721b243
2 changed files with 17 additions and 0 deletions
|
@ -1,2 +1,5 @@
|
|||
- name: Packages
|
||||
include: packages.yml
|
||||
|
||||
- name: User
|
||||
include: user.yml
|
||||
|
|
14
ansible/roles/common/tasks/user.yml
Normal file
14
ansible/roles/common/tasks/user.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
- name: Make me
|
||||
user:
|
||||
name: "{{ user }}"
|
||||
home: "{{ home }}"
|
||||
comment: Jake Howard
|
||||
shell: /usr/bin/bash
|
||||
system: true
|
||||
become: true
|
||||
|
||||
- name: Give user sudo access
|
||||
lineinfile:
|
||||
path: /etc/sudoers
|
||||
line: "{{ user }} ALL=(ALL) ALL"
|
||||
become: true
|
Loading…
Reference in a new issue