July 2017
Intermediate to advanced
266 pages
6h 36m
English
When connecting Ansible with remote hosts, Ansible's best practices encourage the use of SSH key sharing. SSH keys allow one Linux host to talk to another without asking for a specific password. In this section we are going to briefly look at how to set SSH key sharing up on the control server and n number of target machines.
If SSH key Sharing is not available Ansible also offers the option to ask for a password using the --ask-become-pass command-line argument.
To get started, create a /etc/ansible/hosts (if it doesn't exist) and add one or more remote systems into its contents. Your specific public SSH key should be located in authorized_keys on those target systems.
In this ...
Read now
Unlock full access