Guest User

Untitled

a guest
Nov 23rd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local ansible_ssh_host=127.0.0.1
  2.  
  3. staging ansible_ssh_host=<host_ip> ansible_connection=ssh ansible_user=ubuntu ansible_ssh_private_key_file=<key>
  4.  
  5. vara-dev ansible_ssh_host=<host ip> ansible_connection=ssh ansible_user=varanet ansible_ssh_pass=<password>
  6.  
  7. [localhost]
  8. local
  9.  
  10. [iquippo-staging]
  11. staging
  12.  
  13. [varanet-server]
  14. vara-dev
  15.  
  16. [target]
  17. local
  18. staging
  19. vara-dev
  20.  
  21. ansible -i inventory/hosts/ --limit local -m ping
  22.  
  23. ERROR! Missing target hosts
  24.  
  25. ansible all -i inventory/hosts/ --limit local -m ping
Add Comment
Please, Sign In to add comment