Files
jumpserver/apps/assets/automations/ping/custom/telnet/main.yml

12 lines
284 B
YAML

- hosts: custom
gather_facts: no
vars:
ansible_connection: local
ansible_shell_type: sh
ansible_timeout: 30
tasks:
- name: Test asset connection (telnet)
telnet_ping:
login_host: "{{ jms_asset.address }}"
login_port: "{{ jms_asset.port }}"