15 lines
328 B
YAML
15 lines
328 B
YAML
- name: Make me
|
|
user:
|
|
name: "{{ me.user }}"
|
|
home: "{{ me.home }}"
|
|
comment: "{{ me.name }}"
|
|
shell: /bin/bash
|
|
system: true
|
|
become: true
|
|
|
|
- name: Give user sudo access
|
|
user:
|
|
name: "{{ me.user }}"
|
|
groups: "{{ 'sudo' if ansible_os_family == 'Debian' else 'wheel' }}"
|
|
append: true
|
|
become: true
|