-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscan_hosts.yaml
34 lines (29 loc) · 859 Bytes
/
scan_hosts.yaml
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
28
29
30
31
32
33
34
- name: Testing different techniques to map ip and serial
hosts: cameras
collections:
- axis.appmgmt
connection: local
become: no
gather_facts: no
vars:
default_user: root
default_pass: pass
tasks:
# - name: Refresh Inventory
# meta: refresh_inventory
# Print the output
- name: Verify inventory host
debug:
msg: "Found host: {{ inventory_hostname }} ansible_host:{{ ip_address }}"
- name: "Get Basic Device Info"
basicdeviceinfo:
device_ip: "{{ ip_address }}"
method: "getAllProperties"
user: "{{ default_user }}"
password: "{{ default_pass }}"
- name: "Get Installed applications"
basicdeviceinfo:
device_ip: "{{ ip_address }}"
method: "getApplications"
user: "{{ default_user }}"
password: "{{ default_pass }}"