Fix ansible linter issues for undercloud-setup
Change-Id: Ib5f00413d04f0b720ec291cef34f000ffde439af
This commit is contained in:
parent
6ac4c57c12
commit
0de40307b8
@ -4,6 +4,7 @@
|
||||
- name: Install ara deps
|
||||
become: true
|
||||
pip:
|
||||
# noqa 403
|
||||
name:
|
||||
- pip
|
||||
- setuptools
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
- name: Run the non_root_user script
|
||||
command: "/tmp/non_root_user_setup.sh"
|
||||
changed_when: true
|
||||
|
||||
- name: Create undercloud access key
|
||||
delegate_to: localhost
|
||||
|
@ -16,3 +16,4 @@
|
||||
set -o pipefail &&
|
||||
{{ working_dir }}/ovb-undercloud-connectivity.sh 2>&1 {{ timestamper_cmd }} >
|
||||
{{ ovb_undercloud_connectivity_log }}
|
||||
changed_when: true
|
||||
|
@ -16,3 +16,4 @@
|
||||
set -o pipefail &&
|
||||
{{ working_dir }}/install_packages.sh 2>&1 {{ timestamper_cmd }} >
|
||||
{{ working_dir }}/install_packages.sh.log
|
||||
changed_when: true
|
||||
|
@ -25,3 +25,4 @@
|
||||
set -o pipefail &&
|
||||
{{ working_dir }}/toci_vxlan_networking.sh
|
||||
2>&1 {{ timestamper_cmd }} > {{ working_dir }}/toci_vxlan_networking.sh.log
|
||||
changed_when: true
|
||||
|
@ -10,6 +10,7 @@
|
||||
shell: >
|
||||
set -o pipefail &&
|
||||
{{ working_dir }}/vxlan_networking.sh 2>&1 {{ timestamper_cmd }} > {{ working_dir }}/vxlan_networking.sh.log
|
||||
changed_when: true
|
||||
|
||||
- name: Bring up the bridge on overcloud nodes
|
||||
shell: >
|
||||
@ -18,6 +19,7 @@
|
||||
{{ working_dir }}/vxlan_networking.sh.log
|
||||
delegate_to: "{{ item }}"
|
||||
with_items: "{{ groups['overcloud'] | default([]) }}"
|
||||
changed_when: true
|
||||
|
||||
- name: Set the MTU on overcloud nodes
|
||||
shell: >
|
||||
@ -27,8 +29,10 @@
|
||||
echo "MTU={{ vxlan_mtu }}" | sudo tee -a /etc/sysconfig/network-scripts/ifcfg-{{ undercloud_local_interface }}
|
||||
delegate_to: "{{ item }}"
|
||||
with_items: "{{ groups['overcloud'] | default([]) }}"
|
||||
changed_when: true
|
||||
|
||||
- name: Test ping across vxlan tunnel (and optionally restart ovs)
|
||||
shell: "ping -c 6 -W 3 {{ vxlan_networking_addr_prefix }}.2 || (sudo systemctl restart openvswitch && ping -c 6 -W 3 {{ vxlan_networking_addr_prefix }}.2)"
|
||||
delegate_to: "{{ item }}"
|
||||
with_items: "{{ groups['overcloud'] | default([]) }}"
|
||||
changed_when: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user