Commit 5d1e468b by Toshio Kuratomi

Don't bash TMPDIR env var unnecessarily. Other programs might rely on it

parent c655e914
...@@ -15,7 +15,7 @@ CREDENTIALS_ARG = ...@@ -15,7 +15,7 @@ CREDENTIALS_ARG =
endif endif
# http://unix.stackexchange.com/questions/30091/fix-or-alternative-for-mktemp-in-os-x # http://unix.stackexchange.com/questions/30091/fix-or-alternative-for-mktemp-in-os-x
TMPDIR = $(shell mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir') MYTMPDIR = $(shell mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir')
VAULT_PASSWORD_FILE = vault-password VAULT_PASSWORD_FILE = vault-password
...@@ -122,7 +122,7 @@ rackspace: $(CREDENTIALS_FILE) ...@@ -122,7 +122,7 @@ rackspace: $(CREDENTIALS_FILE)
test_galaxy: test_galaxy_spec test_galaxy_yaml test_galaxy: test_galaxy_spec test_galaxy_yaml
test_galaxy_spec: test_galaxy_spec:
mytmpdir=$(TMPDIR) ; \ mytmpdir=$(MYTMPDIR) ; \
ansible-galaxy install -r galaxy_rolesfile -p $$mytmpdir/roles ; \ ansible-galaxy install -r galaxy_rolesfile -p $$mytmpdir/roles ; \
cp galaxy_playbook.yml $$mytmpdir ; \ cp galaxy_playbook.yml $$mytmpdir ; \
ansible-playbook -i $(INVENTORY) $$mytmpdir/galaxy_playbook.yml -v $(TEST_FLAGS) ; \ ansible-playbook -i $(INVENTORY) $$mytmpdir/galaxy_playbook.yml -v $(TEST_FLAGS) ; \
...@@ -131,7 +131,7 @@ test_galaxy_spec: ...@@ -131,7 +131,7 @@ test_galaxy_spec:
exit $$RC exit $$RC
test_galaxy_yaml: test_galaxy_yaml:
mytmpdir=$(TMPDIR) ; \ mytmpdir=$(MYTMPDIR) ; \
ansible-galaxy install -r galaxy_roles.yml -p $$mytmpdir/roles ; \ ansible-galaxy install -r galaxy_roles.yml -p $$mytmpdir/roles ; \
cp galaxy_playbook.yml $$mytmpdir ; \ cp galaxy_playbook.yml $$mytmpdir ; \
ansible-playbook -i $(INVENTORY) $$mytmpdir/galaxy_playbook.yml -v $(TEST_FLAGS) ; \ ansible-playbook -i $(INVENTORY) $$mytmpdir/galaxy_playbook.yml -v $(TEST_FLAGS) ; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment