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

16 lines
328 B
YAML
Raw Permalink Normal View History

2020-05-09 20:47:41 +01:00
- name: Make me
user:
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
user:
name: "{{ me.user }}"
groups: "{{ 'sudo' if ansible_os_family == 'Debian' else 'wheel' }}"
append: true
2020-05-09 20:47:41 +01:00
become: true