Ansible i Cisco UCS B
: 12 lis 2019, 20:54
Cześć,
mam pytanie odnośnie Ansible i Cisco UCS B.
Udało mi się bez problemu stworzyć VLAN, dodać go do vNIC Template, ale nie mogę nigdzie odnaleźć informacji, w jaki sposób "zaznaczyć select" w templatce.
Skrypt jest prosty, ale robi to co ma robić.
- name: Configure VLAN
ucs_vlans:
hostname: '{{ inventory_hostname }}'
username: ucspe
password: ucspe
name: '{{ item.name}}'
id: '{{ item.vlan_id }}'
native: 'no'
with_items: "{{ vlans_l2vni }}"
- name: Add VLAN to vNIC templates
ucs_vnic_template:
hostname: '{{ inventory_hostname }}'
username: ucspe
password: ucspe
name: vNIC_1
fabric: A
mtu: 9000
target: adapter
template_type: updating-template
# redundancy_type:
vlans_list:
- name: "{{ item.vlan_id }}"
state: present
with_items: "{{ vlans_l2vni }}"
z góry dzięki za podpowiedź.
mam pytanie odnośnie Ansible i Cisco UCS B.
Udało mi się bez problemu stworzyć VLAN, dodać go do vNIC Template, ale nie mogę nigdzie odnaleźć informacji, w jaki sposób "zaznaczyć select" w templatce.
Skrypt jest prosty, ale robi to co ma robić.
- name: Configure VLAN
ucs_vlans:
hostname: '{{ inventory_hostname }}'
username: ucspe
password: ucspe
name: '{{ item.name}}'
id: '{{ item.vlan_id }}'
native: 'no'
with_items: "{{ vlans_l2vni }}"
- name: Add VLAN to vNIC templates
ucs_vnic_template:
hostname: '{{ inventory_hostname }}'
username: ucspe
password: ucspe
name: vNIC_1
fabric: A
mtu: 9000
target: adapter
template_type: updating-template
# redundancy_type:
vlans_list:
- name: "{{ item.vlan_id }}"
state: present
with_items: "{{ vlans_l2vni }}"
z góry dzięki za podpowiedź.