ansible-create-users icon indicating copy to clipboard operation
ansible-create-users copied to clipboard

Not taking STDIN

Open tristanvs opened this issue 5 years ago • 1 comments

I might be a complete idiot, but the script works fine, apart that i cannot input a list through stdin like the documentation states.

root@ansible:/etc/ansible/playbooks/ansible-create-users# python generate_user_passwords.py < users.txt You must at least give one username Usage: generate_user_passwords.py [-l ] USER1[:PASSWORD1] USER2[:PASSWORD2] USER3[:PASSWORD3] ... User names can also be passed via stdin (each username:password on a separate line)

users.txt contains:

whatnot constantin trudie esthelle

Any clue about what i'm doing wrong?

Thanks in advance

tristanvs avatar Nov 25 '19 21:11 tristanvs

get_user_from_stdin function is no longer called. Line 58 is commented.

rimkov avatar Dec 16 '19 17:12 rimkov