Closed vinicole closed 1 year ago
Hi Vinicole,
Please find the below ansible task with all available permissions.
- name: Create a server profile template
oneview_server_profile_template:
config: "{{ config }}"
state: present
sessionID: "{{ session.ansible_facts.session }}"
data:
name: "{{ item.name }}"
serverHardwareTypeName: "DL380 Gen10 1"
bios:
manageBios: true
overriddenSettings: []
managementProcessor:
manageMp: true
mpSettings:
- settingType: "LocalAccounts"
args:
localAccounts:
- userName: "user1"
displayName: "One"
password: "asdfghjkl"
userConfigPriv: true
remoteConsolePriv: true
virtualMediaPriv: true
virtualPowerAndResetPriv: true
iLOConfigPriv: true
loginPriv: true
hostBIOSConfigPriv: true
hostNICConfigPriv: true
hostStorageConfigPriv: true
params:
force: "True" # Supported only for API version >= 600
delegate_to: localhost
with_items:
- { name: 'spt' }
- { name: 'spt-1' }
Hi Alisha,
I just tested this: it works great!
Many thanks for your support :-) Vinicole
Hello,
I am trying to set up permissions for iLO accounts (local accounts or directory group accounts) in a service profile template. I defined this in an Ansible task as follows:
I retrieved some of the keywords in the OneView REST API and I guessed the remaining ones but it doesn't work. Creating the account without any permission parameters works fine. I tested this with Oneview 6.0 and Ansible 2.9.27 on a Synergy blade SY480 Gen10 Any idea how this can be solved? Many thanks, V