Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. $ ansible all -i /tmp/myhosts -m shell -a 'uname -a' -u user1 -k
  2. SSH password:
  3. host1.mycomp.com | FAILED! => {
  4. "changed": false,
  5. "module_stderr": "",
  6. "module_stdout": " File "/home/user1/.ansible/tmp/ansible-tmp-1556597037.27-168849792658772/AnsiballZ_command.py", line 39rn with open(module, 'wb') as f:rn ^rnSyntaxError: invalid syntaxrn",
  7. "msg": "MODULE FAILUREnSee stdout/stderr for the exact error",
  8. "rc": 1
  9. }
  10.  
  11. $ more /tmp/myhosts
  12. [mybox]
  13. host1.mycomp.com
  14. [dev]
  15. host1.mycomp.com
  16. [allserver:children]
  17. mybox
  18. dev
  19. [allserver:vars]
  20. variable=somestring
  21.  
  22. $ ssh user1@host1.mycomp.com
  23. (AD: corp.mmco.int) Password:
  24. Last login: Tue Apr 30 00:03:57 2019 from 10.23.232.126
  25. $ hostname
  26. host1
  27.  
  28. ansible --version
  29. 2.7.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement