create a user named bouncie and it'll import my public keys from GitHub once the user was created but I keep getting this error:
TASK [Import my public keys] ***************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "checksum_dest": null, "checksum_src": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "dest": "/home/bouncie/.ssh/authorized_keys", "elapsed": 0, "msg": "Destination /home/bouncie/.ssh does not exist", "src": "/root/.ansible/tmp/ansible-tmp-1580009454.6624455-11824962056609/tmpyd5zy7pt", "url": "https://github.com/da-edra.keys"}
I don't get why I keep getting this error if I created the user with it's home folder and the .ssh folder before trying to download the keys to the file, do you have any clue of what I could be doing wrong?
This is the playbook: https://gist.github.com/da-edra/bd3099cfc045aea62b55541d726f77d5
https://docs.ansible.com/ansible/latest/modules/authorized_key_module.html
Обсуждают сегодня