From ad367f32f8da0a70ffc9a3e8d60af1d4f425f03f Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 18 Jan 2016 16:16:26 +1030 Subject: [PATCH] Using bare variables for environment is deprecated. --- tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 60812d4..c1cb2c0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -26,7 +26,7 @@ command: chdir="{{ build_path }}" bundle install --path='{{ shared_bundle_path }}' {{ bundle_install_options|default(default_bundle_install_options) }} register: bundler changed_when: "'Installing' in bundler or 'Updating' in bundler or 'upgrade' in bundler" - environment: command_environment + environment: "{{ command_environment }}" - name: check schema for diffs diff: @@ -38,7 +38,7 @@ - name: migrate the database command: chdir="{{ build_path }}" bundle exec rake db:migrate - environment: command_environment + environment: "{{ command_environment }}" when: migrate and (force_migrate or rails_schema|changed) - name: check assets for diffs @@ -49,7 +49,7 @@ - name: precompile asset files if necessary command: chdir="{{ build_path }}" bundle exec rake assets:precompile - environment: command_environment + environment: "{{ command_environment }}" when: compile_assets and (assets|changed or force_asset_compilation) - name: copy asset files when not changed