From f88848923966bf5e493c45d3ffc0240167bae53f Mon Sep 17 00:00:00 2001 From: Kyle Walker Date: Wed, 24 Sep 2014 18:08:55 -0700 Subject: [PATCH] Fix Strings Starting With Jinja Templates --- roles/scala/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/scala/tasks/main.yml b/roles/scala/tasks/main.yml index 84e8a1d..11addb8 100644 --- a/roles/scala/tasks/main.yml +++ b/roles/scala/tasks/main.yml @@ -13,20 +13,20 @@ file: path=/usr/local/java/scala src=/usr/local/java/scala-{{ scala_version }}_download state=link force=yes - name: Scala | Add the Scala binary to the system path (/etc/profile) - lineinfile: {{ item }} + lineinfile: "{{ item }}" with_items: - dest=/etc/profile regexp='^SCALA_HOME=/usr/local/java/scala' line="SCALA_HOME=/usr/local/java/scala" state=present - dest=/etc/profile regexp='^PATH=.*SCALA_HOME.*' line="PATH=$PATH:$SCALA_HOME/bin" state=present - name: Scala | Inform the system where Scala is located - command: {{ item }} + command: "{{ item }}" with_items: - update-alternatives --install "/usr/bin/scala" "scala" "/usr/local/java/scala/bin/scala" 1 - update-alternatives --install "/usr/bin/scalac" "scalac" "/usr/local/java/scala/bin/scalac" 1 - update-alternatives --install "/usr/bin/scalap" "scalap" "/usr/local/java/scala/bin/scalap" 1 - name: Scala | Set the system default for Scala - command: {{ item }} + command: "{{ item }}" with_items: - update-alternatives --set scala /usr/local/java/scala/bin/scala - update-alternatives --set scalac /usr/local/java/scala/bin/scalac