create-user: ensure sudo is present

This commit is contained in:
Josh Lay 2024-03-23 12:00:04 -05:00
parent 1088ea9f8f
commit 7f1d80741c
Signed by: jlay
GPG key ID: B265E45CACAD108A

View file

@ -16,6 +16,12 @@
register: user_created
notify: print generated password
- name: Ensure 'sudo' package is installed
become: true
ansible.builtin.package:
name: sudo
state: present
- name: enable nopasswd sudo
become: true
lineinfile: