2 years ago
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