Fix can't generate heka-custom.toml on multi-nodes

Original we judge heka-custom.toml whether exists with stat: path=
method, but if deploy on multi-nodes, should add local_action.

Change-Id: Id4a124499d1db03b16cb8af231a394b53fe44cbf
Closes-Bug: #1646732
This commit is contained in:
jackning 2016-12-08 17:45:00 +08:00
parent 347a86dbaa
commit 4396cae2b8

View File

@ -56,7 +56,7 @@
- { name: "swift-rsyncd", src: "swift", enabled: "{{ enable_swift }}" }
- name: Heka custom config file exists
stat: "path={{ node_custom_config }}/heka/heka-custom.toml"
local_action: stat path="{{ node_custom_config }}/heka/heka-custom.toml"
register: heka_custom_stat_result
- name: Copying over heka custom config file