I have a role that I am calling for simple user administration. I appreciate any feedback on what I am doing.
First of all here is the command line that I am running:
ansible-playbook -i inventories/rd general_users.yml --extra-vars “target=haproxy targetusers=bastionusers” -u -K
The playbook will start fine and collects host data and properly pulls in my users.yml. Then when the actual user addition task fires off I get the following error:
fatal: [server1]: FAILED! => {“failed”: true, “msg”: “ERROR! ‘unicode object’ has no attribute ‘comment’”}
fatal: [server2]: FAILED! => {“failed”: true, “msg”: “ERROR! ‘unicode object’ has no attribute ‘comment’”}
general_users.yml