Advertisement
Guest User

Untitled

a guest
Apr 7th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. > ansible-playbook -vvvv --flush-cache --vault-password-file=vault.txt test.yml
  2.  
  3. ...
  4. TASK [raw] *********************************************************************
  5. task path: /home/ansible/playbooks/test.yml:10
  6. <aim-Precision-7510> ESTABLISH SSH CONNECTION FOR USER: None
  7. <aim-Precision-7510> SSH: EXEC ssh -vvv -o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r -tt aim-Precision-7510 'sudo -H -S -p "[sudo via ansible, key=lwdzzfjmfuvfdlivhfjhttmbzpuydyci] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-lwdzzfjmfuvfdlivhfjhttmbzpuydyci; apt-get -y install jlint'"'"''
  8. fatal: [aim-Precision-7510]: FAILED! => {
  9. "failed": true,
  10. "msg": "Incorrect sudo password"
  11. }
  12.  
  13. - hosts: local
  14. become: true
  15. # become_method: sudo <----- Cause the issue
  16. gather_facts: false
  17.  
  18. pre_tasks:
  19. - raw: apt-get -y install jlint
  20.  
  21. ansible_become_pass: password
  22.  
  23. [defaults]
  24. ansible_ssh_user=ansible
  25. ansible_ssh_private_key_file=~/.ssh/id_rsa
  26. inventory = hosts
  27. callback_plugins = /usr/share/ansible/plugins/callback
  28. [privilege_escalation]
  29. [paramiko_connection]
  30. [ssh_connection]
  31. ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes
  32. [accelerate]
  33. [selinux]
  34. [colors]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement