Guest User

Untitled

a guest
Dec 19th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. me@host ~/ansible/test/ $ ansible-playbook test.yml --ask-become-pass
  2. SUDO password:
  3.  
  4. PLAY [test] ************************************************************************************************************************************************************
  5.  
  6. TASK [Gathering Facts] *************************************************************************************************************************************************
  7. fatal: [192.168.56.10]: FAILED! => {"changed": false, "module_stderr": "This did'ntwork, please try again..n[sudo via ansible, key=rbapdraldomduhnrmwupwqwruazbnnju] password: nsudo: 1 incorrect password attemptn", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
  8. to retry, use: --limit @/home/me/ansible/test/test.retry
  9.  
  10. PLAY RECAP *************************************************************************************************************************************************************
  11. 192.168.56.10 : ok=0 changed=0 unreachable=0 failed=1
  12.  
  13. [defaults]
  14. inventory = ./hosts
  15. host_key_checking = False
  16. ask_become_pass = True
  17.  
  18. [test]
  19. 192.168.56.10 ansible_ssh_user=anton ansible_password=passwordOfAnton ansible_connection=local
  20.  
  21. ---
  22. - hosts: test
  23. become: yes
  24. tasks:
  25. - name: create empty file to test connectivity and sudo access
  26. file: dest=/tmp/abc.txt
  27. state=touch
  28. owner=root group=root mode=0600
  29. notify:
  30. - clean
  31. handlers:
  32. - name: clean
  33. file: dest=/tmp/abc.txt
  34. state=absent
Add Comment
Please, Sign In to add comment