add quotes for shell command

This commit is contained in:
Jérémy Lecour 2018-07-12 11:04:07 +02:00 committed by Jérémy Lecour
parent de63c0747f
commit 5e9d4906ad
1 changed files with 1 additions and 1 deletions

View File

@ -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