dell / redfish-ansible-module

Ansible modules for Out-Of-Band Controllers using Redfish APIs
GNU General Public License v3.0
197 stars 80 forks source link

redfish_facts multiple execution failure #80

Open rht-jbittner opened 6 years ago

rht-jbittner commented 6 years ago

When I have two tasks to run redfish_facts the last one overrides first one. How to reproduce:

- name: Get Manager attributes
  redfish_facts:
    category: Manager
    command: GetManagerAttributes
    baseuri: "{{ ibaseuri }}"
    user: "{{ user }}"
    password: "{{ password }}"

 - name: Get System inventories
   redfish_facts:
     category: Systems
     command: GetBiosAttributes
     baseuri: "{{ baseuri }}"
     user: "{{ user }}"
     password: "{{ password }}"

- debug:
    msg: "{{ ansible_facts.redfish_facts }}"

Yo will see only Bios attributes.

jose-delarosa commented 6 years ago

try directing the output of each task to a diff output file, refer to playbooks in https://github.com/dell/redfish-ansible-module/tree/master/playbooks.

jose-delarosa commented 5 years ago

@rht-jbittner I am going to assume my comment above fixed your issue. I will close this issue in the coming days if I don't hear back from you.