Advertisement
Guest User

Untitled

a guest
Mar 17th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. ---
  2. - hosts: server_ip
  3. gather_facts: no
  4. remote_user: root
  5.  
  6. tasks:
  7. # 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.
  8. - name: check devise status
  9. shell: ssh -i server_ip "show vd"
  10. register: output
  11.  
  12. - expect:
  13. command: sh "{{ output.stdout }}"
  14. responses:
  15. (?i)password: user
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement