![]() ![]() Create a targets file containing your hosts and usernames # HostĬat targets | grep -vE '^(\s*$|#)' | sed 's/#.*$//g' | while read host userĮcho "# Adding public ssh-keys for k in $ Ĥ. This ensures that when the Ansible Automation Platform installation runs. ![]() How can I add ansible admin user and copy SSH public key to a brand-new server or. There's also another option, to use a script to do the job for you. With the ansible user created, as the ansible user, copy the ssh key to all the nodes. identification has been saved in /home/newuser/.ssh/idrsa. There are a lot of solutions out there for managing SSH keys, there's Ansible, Puppet, or other paid solutions. Managing multiple hosts is a pain when using SSH key authentication.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |