Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to sudo #3

Closed
chazragg opened this issue Jan 1, 2020 · 2 comments
Closed

unable to sudo #3

chazragg opened this issue Jan 1, 2020 · 2 comments

Comments

@chazragg
Copy link

chazragg commented Jan 1, 2020

Hello, I am a bit new to all of this so sorry if it is an easy answer.

when using this role to create accounts I am unable to use sudo on them accounts. I am asked for a password but for what I can see there is none where set. is there a default password? i tried using blank but that didn't do anything.

if I manually go onto the machine and set a password for the user all works well.

@geerlingguy
Copy link
Owner

This role doesn't set any passwords for the users it creates (see task here: https://github.com/geerlingguy/ansible-role-github-users/blob/master/tasks/main.yml#L4-L9).

If you want to allow accounts to use sudo you can also configure that separately via the sudoers file using Ansible's template module or lineinfile to modify it.

For now I don't want to add any kind of password management for user account to this role as that can get pretty complicated.

@chazragg
Copy link
Author

Perfect, thank you for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants