Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_user/molecule/modify_all_params-10643/prepare.yml

raw symbols SCIP
1 ---
2 - name: Prepare
3 hosts: all
4 gather_facts: false
5 vars:
6 idrac_user_name: "moleculeTest"
7 tasks:
8 - name: Get Server generation
9 ansible.builtin.include_tasks:
10 file: ../resources/idrac_user/_get_server_generation.yml
11
12 - name: Setting up protocol dynamically
13 ansible.builtin.set_fact:
14 ap: "{{ 'SHA' if model | int < 17 else 'SHA-512' }}"
15 pp: "{{ 'AES' if model | int < 17 else 'AES-256' }}"
16 no_log: true
17
18 - name: Configure a new iDRAC user with all parameters
19 ansible.builtin.import_role:
20 name: dellemc.openmanage.idrac_user
21 vars:
22 hostname: "{{ lookup('env', 'IDRAC_IP') }}"
23 username: "{{ lookup('env', 'IDRAC_USER') }}"
24 password: "{{ lookup('env', 'IDRAC_PASSWORD') }}"
25 validate_certs: false
26 state: present
27 user_name: "{{ idrac_user_name }}"
28 user_password: 'test1234'
29 privilege: ReadOnly
30 ipmi_lan_privilege: Operator
31 ipmi_serial_privilege: No Access
32 enable: true
33 sol_enable: true
34 protocol_enable: true
35 authentication_protocol: "{{ ap }}"
36 privacy_protocol: "{{ pp }}"