
With the release of Ansible 2.5, the recommended way to perform loops is the use the new loop keyword instead of with_X style loops. This review addresses aforementioned change for common tasks within tripleo-upgrade role. Change-Id: I70d387b381b6ce297507cbfe669ea7be902df605
17 lines
454 B
YAML
17 lines
454 B
YAML
---
|
|
- name: create a directory to store post scripts for controller nodes
|
|
file:
|
|
path: "{{ working_dir }}/{{ node_name | splitext | first }}_post"
|
|
state: directory
|
|
|
|
- name: create post scripts for {{ node_name }}
|
|
template:
|
|
src: "check_service_{{ item }}.sh.j2"
|
|
dest: "{{ working_dir }}/{{ node_name | splitext | first }}_post/{{ item }}.sh"
|
|
mode: 0775
|
|
loop:
|
|
- 'haproxy'
|
|
- 'haproxy_backend'
|
|
- 'rabbitmq'
|
|
- 'redis'
|