Closed aviv12825 closed 6 years ago
Hello, can you please let me know what Ansible version you are using? If you don't mind, please provide the output of:
$ ansible --version
Thanks
Also, the playbooks are meant to be run from the git tree, they should find the idrac module from their default directory (notice the 'library' symlink). This is not ideal, so I'm going to add an install script to copy the idrac module to the default Ansible module directories so that you can then run the playbooks from anywhere in your system.
I must I solve it by put on ENV - the following: ANSIBLE_LIBRARY=/mnt/c/Users/aviv_graupen/Documents/idrac-ansible-module-master/module many of the playbook works , but others don't.. if you want I can share more information on the ones that don't .
as for the version: ansible 2.4.2.0 config file = None configured module search path = [u'/mnt/c/Users/aviv_graupen/Documents/idrac-ansible-module-master/module'] ansible python module location = /home/avivg/.local/lib/python2.7/site-packages/ansible executable location = /home/avivg/.local/bin/ansible python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
Some playbooks will only work on 14G servers, but the module should detect the server model and fail with a proper message.
I'm using Win 10 with subsystem Linux inside it.
my hosts file look like this: (I have a file under idrac-ansible-module-master/hosts/ the file name is myhosts and it look like this: [myhosts]
localadmin idracip=10.0.0.41
looks like you need to add host_key_checking = False in you ansible configuration
sorry for the "stupid" question - but where extacly (location) I need to add host_key_checking = False?
for Linux it stored in /etc/ansible/ansible.cfg but i am not sure about windows
You can put ansible.cfg in the directory of the playbook and run the playbooks directly from there.
Copied from http://bit.ly/2DL35g3:
You can do it either in the /etc/ansible/ansible.cfg or ~/.ansible.cfg file:
[defaults] host_key_checking = False Or you can pass it from the command line:
ansible-playbook -e 'host_key_checking=False' yourplaybook.yml Or you can setup and env variable (this might not work on newer ansible versions):
export ANSIBLE_HOST_KEY_CHECKING=False
There seem to be more than one issue reported here, will address here but if you find other problems please open a separate bug.
Closing, if you have any questions please open another issue.
Hi, I have an issue with running playbook ... any playbook. I follow the readme file but it seems something is missing. once running : "ansible-playbook get_firmware_inventory.yml" I get a fatal error - can you please tell what it means see below:
$ ansible-playbook get_firmware_inventory.yml [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [PowerEdge iDRAC Device Firmware Inventory] **
TASK [Define timestamp] *** ok: [localadmin]
TASK [Define file to place results] *** ok: [localadmin]
TASK [Create dropoff directory for host] ** ok: [localadmin -> localhost]
TASK [Get Firmware Inventory] ***** fatal: [localadmin]: FAILED! => {"msg": "The module idrac was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git pull --rebase' to correct this problem."} ...ignoring
TASK [Copy inventory to file] ***** changed: [localadmin -> localhost]
PLAY RECAP **** localadmin : ok=5 changed=1 unreachable=0 failed=0