make some stuff distro-agnostic

This commit is contained in:
Josh Lay 2023-08-30 20:26:20 -05:00
parent dc0781b13b
commit 46c14b88b7
Signed by: jlay
GPG key ID: B265E45CACAD108A
13 changed files with 41 additions and 173 deletions

View file

@ -1,3 +1,13 @@
---
create_username: "{{ lookup('env','USER') }}"
create_pwgen: "{{ lookup('password', '/dev/null chars=ascii_letters,digits,hexdigits,punctuation length=32') }}"
sudo_group_by_fam:
Debian: sudo
RedHat: wheel
created_users_groups: # sorted by os_family
Debian:
- "{{ sudo_group_by_fam[ansible_os_family] }}"
RedHat:
- "{{ sudo_group_by_fam[ansible_os_family] }}"
- adm
- disk