create-user: ensure sudo is present
This commit is contained in:
parent
1088ea9f8f
commit
7f1d80741c
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,12 @@
|
||||||
register: user_created
|
register: user_created
|
||||||
notify: print generated password
|
notify: print generated password
|
||||||
|
|
||||||
|
- name: Ensure 'sudo' package is installed
|
||||||
|
become: true
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: sudo
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: enable nopasswd sudo
|
- name: enable nopasswd sudo
|
||||||
become: true
|
become: true
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
Loading…
Reference in a new issue