Estou tendo problemas para alterar senhas com o Ansible. Pode ser meu manual.
Eu preciso alterar essa senha para usuários específicos. As chaves ssh são as mesmas na seção de chaves autorizadas. Não sei por que isso não está se conectando à outra máquina.
- hosts: HOSTNAME.austin.ibm.com
tasks:
- name: Change Root Password
user: name=root update_password=always password=passw0rd1
Aqui está minha mensagem de erro:
ubuntu@ans-test:/etc/ansible$ sudo ansible-playbook -s password.yml
sudo: unable to resolve host ans-test
PLAY [HOSTNAME.austin.ibm.com] **************************************************
TASK [setup] *******************************************************************
The authenticity of host 'HOSTNAME.austin.ibm.com (9.3.214.197)' can't be established.
ECDSA key fingerprint is SHA256:pX3FVgOCBmVTy29IbM+uPQkKYDa3GBehj4t1BekZxGw.
Are you sure you want to continue connecting (yes/no)? yes
fatal: [arlz197.austin.ibm.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
to retry, use: --limit @password.retry
PLAY RECAP *********************************************************************
HOSTNAME.austin.ibm.com : ok=0 changed=0 unreachable=1 failed=0