Skip to content

Commit

Permalink
Merge pull request #51 from bigjazzsound/master
Browse files Browse the repository at this point in the history
Add option to set the working directory for degoss
  • Loading branch information
naftulikay committed Oct 10, 2019
2 parents 7222c5b + 763018c commit 9da6359
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ degoss_clean: true
degoss_clean_on_failure: true
# Enable debug-level logging.
degoss_debug: false
# Sets directory where degoss will put test files on the remote host
degoss_base_workdir: "/tmp"

# A dictionary of variables to make available to Goss at runtime (e.g. {{.Vars.my_variable}})
goss_variables: {}
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: create workdir
command: mktemp -d /tmp/degoss.XXXXXXXXXX
command: "mktemp -d {{ degoss_base_workdir }}/degoss.XXXXXXXXXX"
register: workdir
changed_when: false

Expand Down

0 comments on commit 9da6359

Please sign in to comment.