- hosts: all tasks: - name: Run Litmus shell: cmd: | set -e function trap_exit_sig() { {{ ansible_user_dir }}/workspace/puppet-openstack-integration/copy_logs.sh # NOTE(tobias-urdin): Litmus does not execute spec_clean rake task after a run. $GEM_BIN_DIR/bundle exec rake spec_clean } trap trap_exit_sig EXIT export CEPH_VERSION={{ ceph }} if [ "{{ puppet_gem_version }}" != "latest" ]; then export PUPPET_GEM_VERSION='~> {{ puppet_gem_version }}' fi mkdir .bundled_gems export GEM_HOME=`pwd`/.bundled_gems export GEM_BIN_DIR=$GEM_HOME/bin ruby <