| 12345678910111213141516171819202122232425262728293031 |
- - name: init offline nodes list
- set_fact:
- offline_node_list: []
- - name: append offline_nodes
- set_fact:
- offline_node_list: "{{ offline_node_list + offline_nodes.split() }}"
- when:
- - offline_nodes is defined
- - name: offline_nodes type list
- set_fact:
- offline_node_list: "{{ offline_node_list + [node_ip] }}"
- when:
- - offline_data_path is defined
- - high_availability_vip is not defined
- - name: cp load-images.sh
- copy:
- mode: "0755"
- src: load-images.sh
- dest: /tmp/load-images.sh
- become: yes
- when:
- - offline_node_list | length > 0
- - name: loading images (this is slow, be patient)
- shell: bash /tmp/load-images.sh
- when:
- - offline_node_list | length > 0
- become: yes
|