From 5e9d4906add63b059324519e5244103eca6de244 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 12 Jul 2018 11:04:07 +0200 Subject: [PATCH] add quotes for shell command --- munin/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/munin/tasks/main.yml b/munin/tasks/main.yml index 0ca5eb29..f08f2005 100644 --- a/munin/tasks/main.yml +++ b/munin/tasks/main.yml @@ -22,7 +22,7 @@ notify: restart munin-node - name: Rename the localdomain data dir - shell: mv /var/lib/munin/localdomain /var/lib/munin/{{ ansible_domain }} && rename "s/localhost.localdomain/{{ ansible_fqdn }}/" /var/lib/munin/{{ ansible_domain }}/* + shell: "mv /var/lib/munin/localdomain /var/lib/munin/{{ ansible_domain }} && rename \"s/localhost.localdomain/{{ ansible_fqdn }}/\" /var/lib/munin/{{ ansible_domain }}/*" args: creates: /var/lib/munin/{{ ansible_domain }} removes: /var/lib/munin/localdomain