From d3610fdb95f76bee8527c637ed5a7a2b30130a22 Mon Sep 17 00:00:00 2001 From: Sergey Bubnov Date: Wed, 7 Nov 2018 13:46:32 +0400 Subject: [PATCH] use multiline shell command --- roles/common/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 2b51ad4..3753913 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -85,7 +85,9 @@ # when: node.net is defined - name: apply NICs config - command: 'alterator-cmdline /net-eth action write commit "#t"; service network restart' + shell: | + alterator-cmdline /net-eth action write commit "#t" + service network restart changed_when: false async: 100 poll: 0