Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14 from TigerWolf/feature/ansible_2
Browse files Browse the repository at this point in the history
Using bare variables for environment is deprecated.
  • Loading branch information
nicolai86 committed Jan 21, 2016
2 parents 18e27b8 + ad367f3 commit 79b8c10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 79b8c10

Please sign in to comment.