Where does the configuration file live and what can I configure in it?
Answer / Ritika Saraf
The main Ansible configuration file is named ansible.cfg and typically lives in your home directory (~/.ansible/ansible.cfg on Linux or Mac, and C:Users<username>.ansibleansible.cfg on Windows). The configuration file lets you set various options for your Ansible setup, such as:n1. Inventory file: Specify the location of your inventory file that lists your hosts.n2. Connection settings: Configure parameters like the connection type (SSH, paramiko, etc.), transport method (local, ssh, winrm, etc.), and SSH options (user, password, key_file, etc.).n3. Additional modules and plugins: Enable or disable additional modules and plugins that Ansible can use.n4. Vault password file: Set the path to your vault password file if you're using encrypted variables.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to keep secret data in playbook?
What are ad-hoc commands? Give an example.
Where does the configuration file live and what can I configure in it?
What are the variables in ansible?
Does ansible support hardware provisioning?
How does ansible work?
What is ansible role?
Compare ansible vs puppet?
Is it possible to build our modules in ansible?
Explain callback_plugin in ansible?
How do I generate crypted passwords for the user module?
Describe your newsletter ansible and who it’s aimed at.