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