Users Guide

ome_template:
hostname: "192.168.0.1"
username: "username"
password: "password"
command: "clone"
template_id: 12
attributes:
Name: "New Cloned Template Name"
- name: Import template from XML content.
ome_template:
hostname: "192.168.0.1"
username: "username"
password: "password"
command: "import"
attributes:
Name: "Imported Template Name"
# Template Type from TemplateService/TemplateTypes
Type: 2
# xml string content
Content: "<SystemConfiguration Model=\"PowerEdge R940\" ServiceTag=\"SVCTAG1\"
TimeStamp=\"Tue Sep 24 09:20:57.872551 2019\">\n<Component FQDD=\"AHCI.Slot.6-1\">
\n<Attribute
Name=\"RAIDresetConfig\">True</Attribute>\n<Attribute Name=\"RAIDforeignConfig\">Clear</
Attribute>\n
</Component>\n<Component FQDD=\"Disk.Direct.0-0:AHCI.Slot.6-1\">\n<Attribute Name=
\"RAIDPDState\">Ready
</Attribute>\n<Attribute Name=\"RAIDHotSpareStatus\">No</Attribute>\n</Component>\n
<Component FQDD=\"Disk.Direct.1-1:AHCI.Slot.6-1\">\n<Attribute Name=\"RAIDPDState
\">Ready</Attribute>\n
<Attribute Name=\"RAIDHotSpareStatus\">No</Attribute>\n</Component>\n</
SystemConfiguration>\n"
Description: "Imported Template description"
- name: Import template from local XML file.
ome_template:
hostname: "192.168.0.1"
username: "username"
password: "password"
command: "import"
attributes:
name: "Imported Template Name"
Type: 2
Content: "{{ lookup('file', '/path/to/xmlfile') }}"
Module: dellemc_ome_template
Synopsis
This module creates, modifies or deploys a template.
NOTE: This module is deprecated and replaced with ome_template.
Options
Table 60. dellemc_ome_template
Parameter Require
d
Default Choices Comments
hostname Yes NA NA Target IP Address or hostname
username Yes NA NA Target username
password Yes NA NA Target user password
port No 443 NA Target device HTTPS port
state No create
create
modify
deploy
C(create) creates a new template.
C(modify) modifies an existing template.
C(deploy) deploys an existing template.
70 Modules for OpenManage Enterprise (OME)