tripleo-upgrade/tasks/common/controller_post_script.yml
Yurii Prokulevych b25817a233 Migrate from with_X loop.
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
2019-05-30 10:56:25 +02:00

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'