infrastructure/ansible/roles/common/tasks/user.yml

15 lines
268 B
YAML
Raw Normal View History

2020-05-09 20:47:41 +01:00
- name: Make me
user:
name: "{{ user }}"
home: "{{ home }}"
comment: Jake Howard
2020-05-10 19:23:41 +01:00
shell: /bin/bash
2020-05-09 20:47:41 +01:00
system: true
become: true
- name: Give user sudo access
lineinfile:
path: /etc/sudoers
line: "{{ user }} ALL=(ALL) ALL"
become: true