Setting a Password in Ansible Inventory File
Generally, we shouldn't be needing this, as one should have a SSH key pair to access remote servers for enhanced security, and convenience, but there might be scenarios where you need to use password authentication. This can be be useful in development or testing environments, but it's prudent to avoid this practice in production.
Example Inventory File
Source: Serverfault
Last updated