Create user

This commit is contained in:
Jake Howard 2020-05-09 20:47:41 +01:00
parent 5289206f14
commit 59a721b243
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 17 additions and 0 deletions

View File

@ -1,2 +1,5 @@
- name: Packages
include: packages.yml
- name: User
include: user.yml

View 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