Merge "Check only role path for NetworkConfig"

This commit is contained in:
Zuul 2020-09-21 22:08:20 +00:00 committed by Gerrit Code Review
commit a0582c33b3
1 changed files with 3 additions and 7 deletions

View File

@ -552,14 +552,10 @@ outputs:
debug:
msg: Use --start-at-task 'Network Configuration' to resume from this task
- name: Check NetworkConfig script existence
local_action:
module: stat
path: "{{ lookup('first_found', NetworkConfig_paths, errors='ignore') }}"
delegate_to: localhost
stat:
path: "{{ tripleo_role_name ~ '/NetworkConfig' }}"
register: NetworkConfig_stat
vars:
NetworkConfig_paths:
- "{{ tripleo_role_name ~ '/' ~ inventory_hostname ~ '/NetworkConfig' }}"
- "{{ tripleo_role_name ~ '/NetworkConfig' }}"
- name: Run Network Config
import_role:
name: tripleo_network_config