| || || || |
An Ansible configuration file allows us to (re)define some of Ansible behaviours. This is useful for changing things like the path to the Python interpreter we want Ansible to use, the SSH connection settings, and more.
We're going to be using the configuration to configure how it handles the SSH finger prints of remote systems. Essentially we want it to ignore those fingerprints because when we execute our Ansible Playbook from our CI/CD Runners (agents) later on we're unable to (easily) configure them with the finger prints of our servers ahead of time.
Our configuration is currently quite simple. We're simply setting
False so that we tell Ansible to ignore remote SSH finger prints.
Committing the Code¶
- Set your working directory to the
- Save the file as
git add ansible.cfgto add it to the Git staging area
git commit -am 'ensuring ansible ignores host keys on remote hosts'to commit the file to our repository
- Push the code to GitLab.com: