2020-05-09 20:47:41 +01:00
|
|
|
- name: Make me
|
|
|
|
user:
|
|
|
|
name: "{{ user }}"
|
|
|
|
home: "{{ home }}"
|
2021-01-18 20:14:38 +00:00
|
|
|
comment: "{{ name }}"
|
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
|
2022-01-22 20:01:07 +00:00
|
|
|
user:
|
|
|
|
name: "{{ user }}"
|
|
|
|
groups: "{{ 'sudo' if ansible_os_family == 'Debian' else 'wheel' }}"
|
|
|
|
append: true
|
2020-05-09 20:47:41 +01:00
|
|
|
become: true
|