Hi folks,
I'm having a problem with ansible.cfg file which is built inside a repo and a playbook run by Jenkins.
Basically the problem is that Ansible not read configurations from the ansible.cfg file provided by the repo.
So, the playbook fail with: ERROR: Unable to find an inventory file, specify one with -i ?
This is mi config file:
#########
[defaults]
inventory = ./inventory <= Folder in which I have: hosts / ec2.ini and ec2.py files
host_key_checking = False
private_key_file = /home/jenkins/.ssh/private.pem <= Pem key to connect to servers
[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
#########
Thanks,
Federico