cisco.ucs.ucs_service_profile_from_template – Configures Service Profiles from templates on Cisco UCS Manager

Note

This plugin is part of the cisco.ucs collection (version 1.6.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install cisco.ucs.

To use it in a playbook, specify: cisco.ucs.ucs_service_profile_from_template.

New in version 2.5: of cisco.ucs

Synopsis

  • Configures Service Profile created from templates on Cisco UCS Manager.

Requirements

The below requirements are needed on the host that executes this module.

  • ucsmsdk

Parameters

Parameter Choices/Defaults Comments
hostname
string / required
IP address or hostname of Cisco UCS Manager.
Modules can be used with the UCS Platform Emulator https://cs.co/ucspe
name
string / required
The name of the service profile.
This name can be between 2 and 32 alphanumeric characters.
You cannot use spaces or any special characters other than - (hyphen), "_" (underscore), : (colon), and . (period).
This name must be unique across all service profiles and service profile templates within the same organization.
org_dn
string
Default:
"org-root"
Org dn (distinguished name)
password
string / required
Password for Cisco UCS Manager authentication.
port
integer
Port number to be used during connection (by default uses 443 for https and 80 for http connection).
power_state
string
    Choices:
  • up
  • down
The power state to be applied when this service profile is associated with a server.
If no value is provided, the power_state for the service profile will not be modified.
proxy
string
If use_proxy is no, specfies proxy to be used for connection. e.g. 'http://proxy.xy.z:8080'
source_template
string / required
The name of the service profile template used to create this serivce profile.
state
string
    Choices:
  • present
  • absent
If present, will verify Service Profiles are present and will create if needed.
If absent, will verify Service Profiles are absent and will delete if needed.
use_proxy
boolean
    Choices:
  • no
  • yes
If no, will not use the proxy as defined by system environment variable.
use_ssl
boolean
    Choices:
  • no
  • yes
If no, an HTTP connection will be used instead of the default HTTPS connection.
user_label
string
The User Label you want to assign to this service profile.
username
string
Default:
"admin"
Username for Cisco UCS Manager authentication.

Examples

- name: Configure Service Profile from Template
  cisco.ucs.ucs_service_profile_from_template:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: test-sp-instance1
    source_template: test-sp

- name: Remove Service Profile
  cisco.ucs.ucs_service_profile_from_template:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: test-sp-instance1
    state: absent

Authors

  • David Soper (@dsoper2)
  • CiscoUcs (@CiscoUcs)

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/cisco/ucs/ucs_service_profile_from_template_module.html