ContributionsMost RecentMost LikesSolutionsRe: Ansible lm_info devices by group Just to provide closure, I simply wrote a python script that takes parameters, passed in a value from a previous ansible step and registered the output from the python script to use in subsequent steps. Not as streamlined as using straight Ansible, but it got the job done. Thanks for all of the comments. Have a great weekend Re: Enable retrieval of device list by system group in the LM Ansible lm_info module Sorry - missed the pinned post at the top. I can’t delete this - so…. Enable retrieval of device list by system group in the LM Ansible lm_info module Need to be able to get devices for a particular group in LM using the ansible lm_info module. Seems a reasonable expectation. Example: - name: Get devices using full_path lm_info: target: device company: batman access_id: '{{ lm_user }}' access_key: '{{ lm_key }}' full_path: " {{ fpath }} " register: output If fpath is “batman/servers/linux/mexico” then all devices that are in that group are returned ex: mex_linux_01 popo_linux_33 tjna_linux_123 Re: Ansible lm_info devices by group Apologies - is this not correct? My first post on the new Community site. Ansible lm_info devices by group Hello All, I am trying to achieve a similar result in Ansible using the LogicMonitor collections modules as I can get with the Rest API using python. Using rest, I can do something like: {{url}}/device/groups/{{group_id}}/devices and I will get a list of all devices for the group specified in ‘group_id’. I am trying to get the same result using the ansible lm_info module but no luck. I am not trying to perform any action - just return the info. I tried using full_path to narrow the device results down but I still get all devices instead of those associated with the group (this is not a collector group but a device group). The group parameter is not supported for lm_info with a target: device but full_path is supposed to be supported. I am reluctant to even post this question because I am probably missing something really simple 🙄 but … Thanks in advance Solved
Top ContributionsRe: Ansible lm_info devices by groupAnsible lm_info devices by groupSolvedEnable retrieval of device list by system group in the LM Ansible lm_info moduleRe: Enable retrieval of device list by system group in the LM Ansible lm_info moduleRe: Ansible lm_info devices by group