Browse Source

Merge "Fix dry-run for NetworkConfig tasks" into stable/train

changes/18/735818/1
Zuul 3 weeks ago
committed by Gerrit Code Review
parent
commit
8d5bf63bdb
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      common/deploy-steps.j2

+ 6
- 0
common/deploy-steps.j2 View File

@@ -569,17 +569,23 @@ outputs:
bridge_name: "{{ neutron_physical_bridge_name }}"
interface_name: "{{ neutron_public_interface_name }}"
register: NetworkConfig_result
when:
- not ansible_check_mode
failed_when: NetworkConfig_result.rc is not defined

- name: Write rc of NetworkConfig script
copy:
content: "{{ NetworkConfig_result.rc }}"
dest: /var/lib/tripleo-config/os-net-config.returncode
when:
- NetworkConfig_result.rc is defined

- name: NetworkConfig stdout
debug:
var: NetworkConfig_result.stderr_lines
failed_when: NetworkConfig_result.rc != 0
when:
- NetworkConfig_result.rc is defined

# os-net-config currently relies on the legacy network
# so we need to ensure it's enabled on boot. This should


Loading…
Cancel
Save