community / community.skydive / 1.0.0 / lookup / skydive Query Skydive objects Authors: unknowncommunity.skydive.skydive (1.0.0) — lookup
Install with ansible-galaxy collection install community.skydive:==1.0.0
collections: - name: community.skydive version: 1.0.0
Uses the Skydive python REST client to return the queried object from Skydive network analyzer.
- name: return skydive metdata if present based on Name set_fact: skydive_meta: >- {{ lookup('community.skydive.skydive', filter={'query': "G.V().Has('Name', 'sumit-VirtualBox')"}) }}
- name: return all the skydive metdata having parameter Name set_fact: skydive: >- {{ lookup('community.skydive.skydive', filter={'query': "G.V().Has('Name')"}, provider={'endpoint': 'localhost:8082', 'username': 'admin', 'password': 'password'}) }}
filter: description: a dict object that is used to filter the return objects provider: description: - A dict object containing connection details. suboptions: endpoint: description: - Specifies the hostname/address along with the port as C(localhost:8082)for connecting to the remote instance of SKYDIVE client over the REST API. required: true insecure: default: false description: - Ignore SSL certification verification. type: bool password: description: - Specifies the password to use to authenticate the connection to the remote instance of SKYDIVE client. ssl: default: false description: - Specifies the ssl parameter that decides if the connection type shall be http or https. type: bool user: description: - Configures the username to use to authenticate the connection to the remote instance of SKYDIVE client.
_list: description: - The list of queried object metadata returned: always type: list