Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- me@host ~/ansible/test/ $ ansible-playbook test.yml --ask-become-pass
- SUDO password:
- PLAY [test] ************************************************************************************************************************************************************
- TASK [Gathering Facts] *************************************************************************************************************************************************
- 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}
- to retry, use: --limit @/home/me/ansible/test/test.retry
- PLAY RECAP *************************************************************************************************************************************************************
- 192.168.56.10 : ok=0 changed=0 unreachable=0 failed=1
- [defaults]
- inventory = ./hosts
- host_key_checking = False
- ask_become_pass = True
- [test]
- 192.168.56.10 ansible_ssh_user=anton ansible_password=passwordOfAnton ansible_connection=local
- ---
- - hosts: test
- become: yes
- tasks:
- - name: create empty file to test connectivity and sudo access
- file: dest=/tmp/abc.txt
- state=touch
- owner=root group=root mode=0600
- notify:
- - clean
- handlers:
- - name: clean
- file: dest=/tmp/abc.txt
- state=absent
Add Comment
Please, Sign In to add comment