dell / dellemc-openmanage-ansible-modules

Dell OpenManage Ansible Modules
GNU General Public License v3.0
335 stars 163 forks source link

[QUESTION]: idrac_server_config_profile import problem #479

Closed sp33dyS closed 1 year ago

sp33dyS commented 1 year ago

Hi. We've got a problem when trying to import profile template file, using _idrac_server_configprofile, with changes we want to apply in iDRAC. Job in Ansible Tower performs well, but ends with Changes found to be applied. Similar situation happens when trying to create new user using _idracuser module. Job ends with Changes found to commit message. We've tried different module settings and both JSON and XML files. Nothing works. We've found nothing helpful in configuration about this issue.

Python 3.9.16 Ansible Core 2.14.2 Ansible Tower 3.8.4 Dell EMC OpenManage Ansible Modules 6.3.0 iDRAC firmware 6.0

anupamaloke commented 1 year ago

@sp33dyS, could you please share your playbook?

sp33dyS commented 1 year ago

Hi, thank you for reply. My playbook looks like this:

---
- hosts: 127.0.0.1
  gather_facts: no
  strategy: linear
  become: no

  tasks:

    - debug:
        msg:
          - ================================
          - Test_openmanage.yml
          - ================================
      tags:
        - always

    - name: Import SCP with IDRAC components in JSON format from a local path
      dellemc.openmanage.idrac_server_config_profile:
        idrac_ip: "x.x.x.x"
        idrac_user: "root"
        idrac_password: "xxxxxxxxxx"
        command: import
        share_name: "scp"
        scp_file: idrac_conf.json
        #scp_file: idrac_conf_full.json
        #scp_file: idrac_conf.xml
        export_format: "JSON"
        validate_certs: False
        shutdown_type: Graceful
        end_host_power_state: "On"
        job_wait: False

Also task for _idracuser module:

    - name: Import SCP with IDRAC components in JSON format from a local path
      dellemc.openmanage.idrac_user:
        idrac_ip: x.x.x.x
        idrac_user: root
        idrac_password: xxxxxxxxxx
        user_name: test
        user_password: test_password
        privilege: ReadOnly
        enable: true
        validate_certs: false
sp33dyS commented 1 year ago

Can be closed. Problem was with stupid thing - wrong Ansible Tower job type... It was set to "Check" and should be "Run"