26 lines
867 B
YAML
26 lines
867 B
YAML
---
|
|
- name: Upgrade the undercloud
|
|
shell: >
|
|
{{ upgrade_working_dir }}/undercloud-upgrade.sh > {{ undercloud_upgrade_log }} 2>&1
|
|
when: step_upgrade_undercloud
|
|
notify:
|
|
- restart openstack services
|
|
|
|
- name: create vlan if doesn't exist
|
|
ignore_errors: yes
|
|
become: yes
|
|
shell: >
|
|
ifconfig {{ network_isolation_vlan }};
|
|
if [[ $? != 0 ]]; then \
|
|
ovs-vsctl add-port br-ctlplane {{ network_isolation_vlan }} tag={{ network_isolation_vlan_tag }} \
|
|
-- set interface {{ network_isolation_vlan }} type=internal;
|
|
fi
|
|
when: network_isolation|bool and deployment_type == "virtual"
|
|
|
|
- name: set vlan up
|
|
ignore_errors: yes
|
|
become: yes
|
|
shell: >
|
|
ip l set dev {{ network_isolation_vlan }} up; ip addr add {{ network_isolation_ipv4_cidr }} dev {{ network_isolation_vlan }};
|
|
when: network_isolation|bool and deployment_type == "virtual"
|