infrastructure/ansible/roles/base/tasks/user.yml
Jake Howard d5a7a61171
All checks were successful
/ terraform (push) Successful in 38s
/ ansible (push) Successful in 1m30s
Remove unnecessary use of become from some roles
This should make execution much faster
2024-09-09 17:09:03 +01:00

13 lines
298 B
YAML

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