Hi all,
I'm migrating form puppet. The last playbook/manifest which is missing is
the user management.
On the puppet I wroute module and some libs an it worked like this
I habe list of pall users in some array
users_list_all: user01, user02, user03, user04
For each server I have list of enabled users, this could be done by
host_vars in ansible
users_enabled: user01, user03
If you add the user to the "users_enabled", the user is created. So far so
good.
And now the tricky part. If you remove the user from the user_enabled, the
user is removed, so the ansible script should be able to check
- If the users in "user_enabled" array do exists, if not crete them
- if the users in "user_s_list_all" - "users_enabled" do not exists, if
exists remove them
Please could anybody help me to solve this tricky problem? I' managing
couple of server, where no all users have access to all servers.
best regards
Peter Hudec