0
我有以下ansible玩法:軌Ansible顯示輸出測試
- name: run rails tests
hosts: marflar
sudo: yes
sudo_user: vagrant
tags:
- rake
tasks:
- name: configure nokogiri
command: bash -lc "bundle config build.nokogiri --use-system-libraries"
- name: install gems
command: bash -lc "bundle install"
register: bundle_complete
- name: check if database exists
command: bash -lc "bundle exec rake db:version"
ignore_errors: True
register: rake_db_version_result
- name: create database
command: bash -lc "bundle exec rake db:setup"
register: db_setup_complete
when: rake_db_version_result|failed
- name: apply database migrations
command: bash -lc "bundle exec rake db:migrate"
register: db_setup_complete
when: rake_db_version_result|success
- name: running the test suite
command: bash -lc "bundle exec rake test"
when: db_setup_complete
它運作良好,但我看不到的bundle exec rake test
輸出,直到它完成之後。有沒有辦法顯示我的測試結果?