Ansible Shell: Wie kann Ansible standardmässig auf die Host-Datei im Verzeichnis zurückgreifen?
Ansible Shell: How can Ansible access the host file in the directory by default?
Ansible is a configuration management program. With the help of this program, it is possible to run installation and configuration routines simultaneously on any number of other computers from one computer. The only prerequisite for this is that the user logged on to the tower can log on to the other computers via SSH (SSH key) and, if necessary, obtain SuperUser rights there. However, no additional software needs to be installed on the clients themselves. When Ansible is called, the path of the desired hosts file can be explicitly specified using the "-i hostfile" option. However, if you want Ansible to use the host file in the "~/ansible" directory by default, you can enter the following line in an Ansible shell (or insert it at the end of the configuration file "~/.bashrc or ~/.zshrc").
One advantage of Ansible is that it checks the existing conditions beforehand. Only then are any routines called if required. If, for example, the desired programs have already been installed or the corresponding configuration files have been adapted, no changes are made. Because of such features, Ansible is often used for server administration, as it does not restart an active server service. However, Ansible Service can also be used on standard computers. Docker containers can also be configured with Ansible Docker.