Hello folks
As a new learner, I am trying to copy the ssh pub key to the managed node as below.
ssh_install.yml
Hello folks
As a new learner, I am trying to copy the ssh pub key to the managed node as below.
ssh_install.yml
#ansible-playbook -i inventory ssh_install.yml *-k*
... avoid the -k option
Use *ssh-agent*.
https://www.ssh.com/academy/ssh/agent
It is a bad practice to *ssh* to root. See
https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_privilege_escalation.html
password: "{{ 'PLAIN_PASSWORD' | password_hash('sha512') }}"
See how to use Ansible vault
https://docs.ansible.com/ansible/latest/cli/ansible-vault.html
The next option is *passwordstore*
https://www.passwordstore.org/
See the Ansible *passwordstore* lookup plugin
https://docs.ansible.com/ansible/latest/collections/community/general/passwordstore_lookup.html