Ansible show output of rails tests -


i've got following ansible play:

- 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 test suite       command: bash -lc "bundle exec rake test"       when: db_setup_complete 

it works well, can't see output of bundle exec rake test until after has completed. there way show test output happens?

it looks lot of people have requested feature, ansible maintainers have decided kind of feature is not fit way ansible built.


edit clarity:

there lot of reasons providing real-time output in ansible not supported, there few solid arguments ticket:

ansible contains 235+ modules , apis used in of these modules don't have capacity reporting status in middle of async operation

and

the cli has no way output standard out changes when running in parallel against several hundred hosts

if want see output of command while executing, you're better off trying ssh or other tool, ansible cannot this.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -