basic drac provisioning playbook
This commit is contained in:
60
drac-configure.yml
Normal file
60
drac-configure.yml
Normal file
@@ -0,0 +1,60 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
gather_facts: no
|
||||
|
||||
tasks:
|
||||
- name: set root user's password
|
||||
dellemc_configure_idrac_users:
|
||||
idrac_ip: "{{ idrac_ip }}"
|
||||
idrac_user: "{{ idrac_user }}"
|
||||
idrac_pwd: "{{ idrac_default_password }}"
|
||||
action: modify
|
||||
user_name: root
|
||||
user_password: "{{ root_user_pass }}"
|
||||
|
||||
- name: create customer user
|
||||
dellemc_configure_idrac_users:
|
||||
idrac_ip: "{{ idrac_ip }}"
|
||||
idrac_user: "{{ idrac_user }}"
|
||||
idrac_pwd: "{{ root_user_pass }}"
|
||||
action: create
|
||||
user_name: "{{ customer_user }}"
|
||||
user_password: "{{ customer_user_pass }}"
|
||||
privilege_users: "Operator"
|
||||
ipmilanprivilege_users: "Operator"
|
||||
ipmiserialprivilege_users: "No_Access"
|
||||
enable_users: "Enabled"
|
||||
solenable_users: "Disabled"
|
||||
protocolenable_users: "Disabled"
|
||||
|
||||
- name: create monitoring user
|
||||
dellemc_configure_idrac_users:
|
||||
idrac_ip: "{{ idrac_ip }}"
|
||||
idrac_user: "{{ idrac_user }}"
|
||||
idrac_pwd: "{{ root_user_pass }}"
|
||||
action: create
|
||||
user_name: monitoring
|
||||
user_password: "{{ monitoring_user_pass }}"
|
||||
privilege_users: "No_Access"
|
||||
ipmilanprivilege_users: "User"
|
||||
ipmiserialprivilege_users: "No_Access"
|
||||
enable_users: "Enabled"
|
||||
solenable_users: "Disabled"
|
||||
protocolenable_users: "Disabled"
|
||||
|
||||
- name: configure webserver
|
||||
dellemc_configure_idrac_services:
|
||||
idrac_ip: "{{ idrac_ip }}"
|
||||
idrac_user: "{{ idrac_user }}"
|
||||
idrac_pwd: "{{ root_user_pass }}"
|
||||
enable_web_server: 'Enabled'
|
||||
timeout: '1920'
|
||||
|
||||
- name: configure networking
|
||||
dellemc_configure_idrac_network:
|
||||
idrac_ip: "{{ idrac_ip }}"
|
||||
idrac_user: "{{ idrac_user }}"
|
||||
idrac_pwd: "{{ root_user_pass }}"
|
||||
enable_ipv4: 'Enabled'
|
||||
enable_dhcp: 'Enabled'
|
||||
dns_from_dhcp: 'Enabled'
|
||||
Reference in New Issue
Block a user