Update configure_mgmt_network_container.yml
- name: Configuring mgmt_network container
command: 'kubectl exec --stdin --tty -n network-config {{ mgmt_network_pod_name.stdout }} \
- -- ansible-playbook /root/mgmt_container_configure.yml -e mgmt_nic="{{ mgmt_network_nic }}"'
+ -- ansible-playbook /root/mgmt_container_configure.yml -e mgmt_nic="{{ mgmt_network_nic }}" -e network_interface_type="{{ network_interface_type }}"'
changed_when: false
tags: install
- when: not mgmt_network_container_status
+ when:
+ - not mgmt_network_container_status
+ - device_support_status
+
+- name: Configuring mgmt_network container when shared lom
+ command: 'kubectl exec --stdin --tty -n network-config {{ mgmt_network_pod_name.stdout }} \
+ -- ansible-playbook /root/mgmt_container_configure.yml -e mgmt_nic="{{ mgmt_network_nic }}" \
+ -e network_interface_type="{{ network_interface_type }}" -e mgmt_network_netmask="{{ mgmt_network_netmask }}"
+-e mgmt_network_subnet="{{ mgmt_network_subnet }}" \ -e subnet="{{ subnet }}" -e netmask="{{ netmask }}"'
+ changed_when: false
+ when:
+ - not mgmt_network_container_status
+ - mgmt_lom
- name: Remove the files
file:
