Skip to content

Commit

Permalink
Merge branch 'playbook_test_step' of github.com:bedroge/compatibility…
Browse files Browse the repository at this point in the history
…-layer into playbook_test_step
  • Loading branch information
bedroge committed Jun 21, 2021
2 parents 4d7bd92 + 56d14ba commit 0074fae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/actions/install_compatibility_layer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ cat << EOF > hosts
EOF

ansible-playbook --connection=local --inventory=hosts -e ansible_python_interpreter=python3 -e gentoo_prefix_path=$1 ${GITHUB_WORKSPACE}/ansible/playbooks/install.yml

# A successful installation should at least have Lmod and archspec,
# so let's check if we can use them.
source $1/usr/share/Lmod/init/profile && module avail && $1/usr/bin/archspec cpu
4 changes: 4 additions & 0 deletions ansible/playbooks/roles/compatibility_layer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@
- name: Abort transaction
command: "cvmfs_server abort {{ cvmfs_repository }}"
when: cvmfs_start_transaction and cvmfs_abort_transaction_on_failures

- name: Exit because of failure
fail:
msg: "Task {{ ansible_failed_task }} failed, with result {{ ansible_failed_result }}."

0 comments on commit 0074fae

Please sign in to comment.