File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ PWD=$(shell pwd)
2
2
ROLE_NAME =weareinteractive.apache2
3
3
ROLE_PATH =/etc/ansible/roles/$(ROLE_NAME )
4
4
TEST_VERSION =ansible --version
5
- TEST_DEPS =ansible-galaxy install -c weareinteractive.apt weareinteractive.openssl weareinteractive.htpasswd
5
+ TEST_DEPS =apt-get update && apt-get install -y python3-pip && pip3 install pyopenssl && ansible-galaxy install -c weareinteractive.apt weareinteractive.openssl weareinteractive.htpasswd
6
6
TEST_SYNTAX =ansible-playbook -v -i 'localhost,' -c local $(ROLE_PATH ) /tests/main.yml --syntax-check
7
- TEST_PLAYBOOK =ansible-playbook -vvvv -i 'localhost,' -c local $(ROLE_PATH ) /tests/main.yml
7
+ TEST_PLAYBOOK =ansible-playbook -vvvv -i 'localhost,' -c local -e 'ansible_python_interpreter=/usr/bin/python3' $(ROLE_PATH ) /tests/main.yml
8
8
TEST_IDEMPOTENT =$(TEST_PLAYBOOK ) | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
9
- TEST_CMD =$(TEST_VERSION ) ; $(TEST_SYNTAX ) ; $(TEST_DEPS ) ; $(TEST_PLAYBOOK ) ; $(TEST_IDEMPOTENT )
9
+ TEST_CMD =$(TEST_DEPS ) ; $(TEST_VERSION ) ; $(TEST_SYNTAX ) ; $(TEST_PLAYBOOK ) ; $(TEST_IDEMPOTENT )
10
10
11
11
docs :
12
12
ansible-role docgen
You can’t perform that action at this time.
0 commit comments