...
{{ip_address}}: The device IP
{{username}}: The ssh user name
{{password}}: The ssh user password
Device Tags
Indeni platform pass the playbook all of the tags collected for the device during the interrogation process. The playbook can use it under the field device_tags
...
Code Block |
---|
- name: Found vendor!!! debug: msg: "{{ device_tags.vendor }}" when: device_tags.vendor is defined - name: Found version!!! debug: msg: {{ device_tags['os.version'] }}" when: device_tags['os.version'] is defined |
Tasks
Each task should have a proper name, in order to visualize the results in a clear way
Code Block |
---|
tasks: - name: run show interface panos_op: ip_address: '{{ ip_address }}' username: '{{ user_name }}' password: '{{ password }}' cmd: 'show interface all' register: result - name: result show interface debug: msg='{{ result.stdout }}' |
...