Our IPA server is really Red Hat IDM, but we're using the APIs to return all of the user information. I can debug message that info so I know I have it. I just don't know how to say " I want a list of this, this, and this" so I can use that later. What I'm ultimately looking for is to traverse this list and copy a file to the user's home folder, and make sure the ownership is right (uid/gid).
Thanks, Harry On Tuesday, October 5, 2021 at 2:40:04 PM UTC-4 [email protected] wrote: > Before we try to do this manually in anisble- are you sure it's really > impossible to craft a radius query that returns all the info you need? > > On Tue, 5 Oct 2021 at 20:28, [email protected] <[email protected]> wrote: > >> I'm querying our FreeIPA server for user information. What I need is >> there UID, GID, and Home directory. I can get those individually, but how >> can I set a fact that combines all of these items? Here's the 3 separate >> facts, I just can't figure out how to have an array of them: >> >> - name: Set User facts >> set_fact: >> user_uid: "{{ user_find.json.result | json_query('result[].uid[]') >> }}" >> user_gid: "{{ user_find.json.result | >> json_query('result[].gidnumber[]') }}" >> user_list: "{{ user_find.json.result | >> json_query('result[].homedirectory[]') }}" >> >> Any ideas? >> Harry >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/bf8cb50a-1a92-4d92-a72c-30aef23231d9n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/bf8cb50a-1a92-4d92-a72c-30aef23231d9n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > Sent from a mobile device - please excuse the brevity, spelling and > punctuation. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6fec270e-3446-42a9-afa2-1b09edf0beaen%40googlegroups.com.
