Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > ansible-playbook -vvvv --flush-cache --vault-password-file=vault.txt test.yml
- ...
- TASK [raw] *********************************************************************
- task path: /home/ansible/playbooks/test.yml:10
- <aim-Precision-7510> ESTABLISH SSH CONNECTION FOR USER: None
- <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'"'"''
- fatal: [aim-Precision-7510]: FAILED! => {
- "failed": true,
- "msg": "Incorrect sudo password"
- }
- - hosts: local
- become: true
- # become_method: sudo <----- Cause the issue
- gather_facts: false
- pre_tasks:
- - raw: apt-get -y install jlint
- ansible_become_pass: password
- [defaults]
- ansible_ssh_user=ansible
- ansible_ssh_private_key_file=~/.ssh/id_rsa
- inventory = hosts
- callback_plugins = /usr/share/ansible/plugins/callback
- [privilege_escalation]
- [paramiko_connection]
- [ssh_connection]
- ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes
- [accelerate]
- [selinux]
- [colors]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement