Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: server_ip
- gather_facts: no
- remote_user: root
- tasks:
- # this task will run to the remote host, ie server_ip, so it will try to perform an "ssh -i server_ip" from the host itself.
- - name: check devise status
- shell: ssh -i server_ip "show vd"
- register: output
- - expect:
- command: sh "{{ output.stdout }}"
- responses:
- (?i)password: user
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement