dmtf / redfish-ansible-playbooks Goto Github PK
View Code? Open in Web Editor NEWA set of example Ansible playbooks for invoking the Redfish Ansible modules.
License: Other
A set of example Ansible playbooks for invoking the Redfish Ansible modules.
License: Other
Getting an error with playbook get_system_inventory.yml
RequestsDependencyWarning)
fatal: [redfish1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'template' is undefined\n\nThe error appears to be in '/etc/ansible/get_system_inventory.yml': line 25, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Copy results to output file\n ^ here\n"}
In the README.md, the last line of the "Redfish Ansible Modules" paragraph points to redfish_utils.py which is a broken link (404).
I was trying to understand whether the Redfish Ansible modules mentioned in this repo were using the DMTF Python Redfish Library
The playbook is to set multiple BIOS attributes, but it has a mix of "attribute" and "attributes" as terms. Need to review the usage to ensure consistency.
Update playbooks in devel
branch to match the Ansible devel
branch (includes the features that are targeted for Ansible release 2.10).
ansible-playbook -i inventory.yml playbooks/accounts/add_user.yml
fatal: [redfish1]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "msg": "HTTP Error 500 on PATCH request to 'https://ip/redfish/v1/AccountService/Accounts/3', extended message: 'Internal Server Error'"}
while
curl -k -u user:password https://ip/redfish/v1/AccountService/Accounts/3
{ "@odata.type": "#ManagerAccount.v1_0_2.ManagerAccount", "Id": "3", "Name": "User Account", "Description": "User Account", "Enabled": true, "Password": null, "UserName": "test_user", "RoleId": "", "@odata.context": "\/redfish\/v1\/$metadata#ManagerAccount.ManagerAccount", "@odata.id": "\/redfish\/v1\/AccountService\/Accounts\/3" }
If I change Id to "4" which does not exist yet on my remote host, I still run into the same error.
ansible --version
ansible 2.9.12
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/ubuntu/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.17 (default, Jul 20 2020, 15:37:01) [GCC 7.5.0]
In order for these playbooks to be in synch with the latest Ansible release, we should be holding off on merging pull requests to master until any necessary Ansible changes are made available through their release process. This may mean we would have an active development branch, or set of branches tied to Ansible milestones.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.