mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Don't bash TMPDIR env var unnecessarily. Other programs might rely on it
This commit is contained in:
parent
c655e91436
commit
5d1e468bda
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
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:
|
||||||
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) ; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue