-
assigned issue to
Ansible controller on IBM i | ansible.cfg
Hello,
I have two concerns.
Creating an ansible.cfg file on path /home/QSECOFR/.ansible/collections/ansible_collections/ibm/power_ibmi/playbooks/
ls
ansible.cfg
vi ansible.cfg
[defaults]
roles_path = ../roles
inventory = hosts_ibmi.ini
[ssh_connection]
pipelining = True
What would be the preferred parameters to be use on ansible.cfg for Ansible control for IBM i?
By the other side, issuing ansible --version
# ansible --version
ansible 2.9.9
config file = None
configured module search path = ['/HOME/QSECOFR/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /QOpenSys/pkgs/lib/python3.6/site-packages/ansible
executable location = ./ansible
python version = 3.6.12 (default, Nov 10 2020, 13:50:57) [GCC 6.3.0]
config file is none How should I attach the ansible.cfg created before to Ansible?
Regards
MAD
Comments (3)
-
-
Account Deactivated Hello,
When you created an ansible.cfg file in /etc/ansible with below data:
$ cat /etc/ansible/ansible.cfg
[defaults]
library=~/.ansible/plugins/modules:/usr/share/ansible/plugins/modules
action_plugins=~/.ansible/collections/ansible_collections/ibm/power_ibmi/plugins/actionYou will get a correct ansible --version output like --
$ ansible --version
ansible 2.9.9
config file = /etc/ansible/ansible.cfgYou can also create the inventory file there --
$ cat /etc/ansible/hosts
[local]
localhost ansible_connection=local[ibmi]
ut28p60 ansible_ssh_user=xumeng ansible_python_interpreter=/QOpenSys/pkgs/bin/python2 -
reporter - changed status to resolved
Yes, that guidelines help to setup Ansible
- Log in to comment
Greetings. I believe you will need to place the file in
/etc/ansible.cfg
Assigning to @{557058:54c6b9d7-8bc8-4000-b0f7-c30e024f0298} for further assistance as needed.