---
- name: Prepare
  hosts: all
  gather_facts: false
  vars:
    idrac_user_name: "moleculeTest"
  tasks:
    - name: Configure a new iDRAC user with minimum required parameters
      ansible.builtin.import_role:
        name: idrac_user
      vars:
        hostname: "{{ lookup('env', 'IDRAC_IP') }}"
        username: "{{ lookup('env', 'IDRAC_USER') }}"
        password: "{{ lookup('env', 'IDRAC_PASSWORD') }}"
        validate_certs: false
        state: present
        user_name: "{{ idrac_user_name }}"
        user_password: "#1234Abc"
        custom_privilege: 65
