Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION]: Module to get all LC jobs #442

Open
markatdxb opened this issue Sep 7, 2022 · 1 comment
Open

[QUESTION]: Module to get all LC jobs #442

markatdxb opened this issue Sep 7, 2022 · 1 comment
Labels
area/idrac idrac modules type/feature-request New feature or request

Comments

@markatdxb
Copy link

How can the team help?

Details: ?
Hello, is there any module which is able to pull the list of all LC jobs ?
thanks

@markatdxb markatdxb added the type/question Further information is requested label Sep 7, 2022
@anupamaloke
Copy link
Contributor

@markatdxb, the idrac_lifecycle_controller_job_status_info module currently supports getting details of a specific job only. Going forward, it can be extended to return all the jobs. Meanwhile, you can make a direct API call using the ansible.builtin.uri module:

  tasks:
  - name: Get the job queue
    ansible.builtin.uri:
      url: "https://{{ inventory_hostname }}/redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/Jobs?$expand=*($levels=1)"
      user: "root"
      password: "Dell_123"
      validate_certs: False
      force_basic_auth: yes
      method: GET
      headers:
        Accept: "application/json"
        OData-Version: "4.0"
      status_code: 200
    register: job_queue_response

@anupamaloke anupamaloke added area/idrac idrac modules type/feature-request New feature or request and removed type/question Further information is requested labels Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/idrac idrac modules type/feature-request New feature or request
Development

No branches or pull requests

2 participants