Merge "ironic: Remove tasks for image migration"
This commit is contained in:
commit
f9a4495c96
|
@ -716,27 +716,6 @@ outputs:
|
||||||
params:
|
params:
|
||||||
$IRONIC_PASSWORD: {get_param: IronicPassword}
|
$IRONIC_PASSWORD: {get_param: IronicPassword}
|
||||||
when: is_json_rpc_with_http_basic | bool
|
when: is_json_rpc_with_http_basic | bool
|
||||||
- name: stat /httpboot
|
|
||||||
stat: path=/httpboot
|
|
||||||
register: stat_httpboot
|
|
||||||
- name: stat /tftpboot
|
|
||||||
stat: path=/tftpboot
|
|
||||||
register: stat_tftpboot
|
|
||||||
- name: stat /var/lib/ironic/httpboot
|
|
||||||
stat: path=/var/lib/ironic/httpboot
|
|
||||||
register: stat_ironic_httpboot
|
|
||||||
- name: stat /var/lib/ironic/tftpboot
|
|
||||||
stat: path=/var/lib/ironic/tftpboot
|
|
||||||
register: stat_ironic_tftpboot
|
|
||||||
# cannot use 'copy' module as with 'remote_src' it doesn't support recursion
|
|
||||||
- name: migrate /httpboot to containerized (if applicable)
|
|
||||||
command: /bin/cp -R /httpboot /var/lib/ironic/httpboot
|
|
||||||
when: stat_httpboot.stat.exists and not stat_ironic_httpboot.stat.exists
|
|
||||||
- name: migrate /tftpboot to containerized (if applicable)
|
|
||||||
command: /bin/cp -R /tftpboot /var/lib/ironic/tftpboot
|
|
||||||
when: stat_tftpboot.stat.exists and not stat_ironic_tftpboot.stat.exists
|
|
||||||
# Even if there was nothing to copy from original locations,
|
|
||||||
# we need to create the dirs before starting the containers
|
|
||||||
- name: ensure ironic pxe directories exist
|
- name: ensure ironic pxe directories exist
|
||||||
file:
|
file:
|
||||||
path: /var/lib/ironic/{{ item }}
|
path: /var/lib/ironic/{{ item }}
|
||||||
|
|
Loading…
Reference in New Issue