Agreed. This is essentially what I am doing now and it does work (pipe var to regex_search, etc.). I was just hoping to get the (shell:) command to work in our environment, but with our setup, it does not appear to be possible. I should also be to take the (bigip_command:) output, write the JSON to file, and then run AWK against the file. I have not tried this yet. I'll probably just stick with (regex_search) for now. Thanks! On Thursday, August 17, 2023 at 10:41:00 AM UTC-4 Rowe, Walter P. (Fed) wrote:
> If the F5 is returning structured data (ie. JSON), then set_fact tasks > with filters can help you get to what you need. > > > Walter > -- > Walter Rowe, Division Chief > Infrastructure Services, OISM > Mobile: 202.355.4123 <(202)%20355-4123> > > On Aug 17, 2023, at 10:32 AM, Harry Clendening <[email protected]> > wrote: > > I can get the basic disk space command (df) to work when using a F5 module > (bigip_command:) (which does use provider:). However, the F5 modules do > not support (AWK, GREP, SED, etc.) (which is a bummer), like (shell:) and > (command:) do. I may end up having to use (bigip_command:) to grab the > disk space, and then use a separate Ansible (regex_search) task to filter > for what I want, which is what I have done in the past (albeit this is an > extra step). > > > -- 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/38e660a0-eb7d-4035-bc4d-789902125004n%40googlegroups.com.
