Merge "Use template for NetworkConfig script"
This commit is contained in:
commit
cf21af0b95
@ -567,9 +567,13 @@ outputs:
|
|||||||
- name: Check NetworkConfig script existence
|
- name: Check NetworkConfig script existence
|
||||||
local_action:
|
local_action:
|
||||||
module: stat
|
module: stat
|
||||||
path: {{ '"{{' }} tripleo_role_name ~ '/' ~ inventory_hostname ~ '/NetworkConfig' {{ '}}"' }}
|
path: {{ '"{{' }} lookup('first_found', NetworkConfig_paths, errros='ignore') {{ '}}"' }}
|
||||||
become: no
|
become: no
|
||||||
register: NetworkConfig_stat
|
register: NetworkConfig_stat
|
||||||
|
vars:
|
||||||
|
NetworkConfig_paths:
|
||||||
|
- {{ '"{{' }} tripleo_role_name ~ '/' ~ inventory_hostname ~ '/NetworkConfig' {{ '}}"' }}
|
||||||
|
- {{ '"{{' }} tripleo_role_name ~ '/NetworkConfig' {{ '}}"' }}
|
||||||
|
|
||||||
- name: NetworkConfig
|
- name: NetworkConfig
|
||||||
block:
|
block:
|
||||||
@ -581,10 +585,10 @@ outputs:
|
|||||||
selevel: s0
|
selevel: s0
|
||||||
recurse: true
|
recurse: true
|
||||||
|
|
||||||
- name: Copy NetworkConfig script
|
- name: Render NetworkConfig script
|
||||||
copy:
|
template:
|
||||||
dest: /var/lib/tripleo-config/scripts/run_os_net_config.sh
|
dest: /var/lib/tripleo-config/scripts/run_os_net_config.sh
|
||||||
src: {{ '"{{' }} tripleo_role_name ~ '/' ~ inventory_hostname ~ '/NetworkConfig' {{ '}}"' }}
|
src: {{ '"{{' }} NetworkConfig_stat.stat.path {{ '}}"' }}
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: Run NetworkConfig script
|
- name: Run NetworkConfig script
|
||||||
|
Loading…
Reference in New Issue
Block a user