Re: [ansible-project] trying to reset root password by using .yml playbook, but its failed with permission denied error, however same .yml playbook is working via terminal.

2018-08-05 Thread Deepan M
Hi, Below is my conf details cat ansible.cfg [defaults] host_key_checking = False remote_user = q5c9nf32 inventory = inventory [privilege_escalation] become = True become_method = sudo become_user = root become_ask_pass = True Thanks, Deepan M On Saturday, July 21, 2018 at 9:13:06 PM

Re: [ansible-project] trying to reset root password by using .yml playbook, but its failed with permission denied error, however same .yml playbook is working via terminal.

2018-08-02 Thread Dan Linder
To save the call to the external Python command to encrypt the password, you can use the Jinja2 "password_hash" documented here: https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#hashing-filters So your example could look like this: - name: changing root