Debian Codegraph @

ansible_collections/cisco/ucs/playbooks/server_deploy.yml

raw symbols SCIP
1 ---
2 #
3 # Configure UCS, Associate Service Profiles, and Install OS
4 #
5 # The hosts group used is provided by the group variable or defaulted to 'ucs'.
6 # You can specify a specific host (or host group) on the command line:
7 # ansible-playbook ... -e group=<your host group>
8 # e.g., ansible-playbook server_profiles.yml -e group=TME_Demo
9 #
10 - hosts: "{{ group | default('ucs') }}"
11 connection: local
12 gather_facts: false
13 vars:
14 # The UCS domain hostname can be set in the inventory or on the command line as needed
15 hostname: "{{ inventory_hostname }}"
16 # Names for Service Profiles, Policies, and number of Profiles
17 template_name: auto-template
18 template_type: updating-template
19 host_firmware_package: ansible-latest
20 maintenance_policy: user-ack
21 vmedia_policy: cdd-nfs
22 profile_name: auto-profile
23 num_profiles: 2
24 tasks:
25 - block:
26 # Configure default pools and other settings
27 - import_role:
28 name: servers/defaults
29 tags: defaults
30 # Configure Service Profile Template with default settings
31 - import_role:
32 name: servers/service_profile_templates
33 tags: templates
34 # Create Service Profiles from template and associate
35 - import_role:
36 name: servers/service_profiles
37 tags: profiles
38 # Use the localhost's environment and Python
39 delegate_to: localhost