-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.yml
27 lines (19 loc) · 944 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
- hosts: localhost
gather_facts: no
tasks:
- debug:
var: query('netbox', 'tenants', api_endpoint='http://localhost/', token='8aba70dbb462b36d1bc972980be9e992059e821e')
- debug:
var: lookup('netbox', 'tenants', api_endpoint='http://localhost/', token='8aba70dbb462b36d1bc972980be9e992059e821e')
- debug:
var: lookup('netbox', 'tenants', api_endpoint='http://localhost/', token='8aba70dbb462b36d1bc972980be9e992059e821e', wantlist=True)
- debug:
var: item
loop: "{{ query('netbox', 'tenants', api_endpoint='http://localhost/', token='8aba70dbb462b36d1bc972980be9e992059e821e') }}"
- debug:
var: item
loop: "{{ lookup('netbox', 'tenants', api_endpoint='http://localhost/', token='8aba70dbb462b36d1bc972980be9e992059e821e') }}"
- debug:
var: item
loop: "{{ query('netbox', 'tenants', api_endpoint='http://localhost/', token='8aba70dbb462b36d1bc972980be9e992059e821e') }}"