diff --git a/roles/create-user/tasks/main.yml b/roles/create-user/tasks/main.yml index 2d36790..0498d93 100644 --- a/roles/create-user/tasks/main.yml +++ b/roles/create-user/tasks/main.yml @@ -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: