Commit 6906f4e8 authored by Dan Thomson's avatar Dan Thomson

[#1] Fix secrets file location

parent 697b8401
Pipeline #2600 passed with stage
in 13 minutes and 16 seconds
......@@ -23,19 +23,19 @@ centos7_test_install:
echo "plone_admin_password: ${ADMIN_PASSWORD}" > tests/$SECRETS_FILE
echo "localhost" > tests/inventory
after_script:
- rm -f $SECRETS_FILE
- rm -f tests/$SECRETS_FILE
- rm -rf tests/roles
script:
- |
# Basic role syntax check
ansible-playbook --inventory tests/inventory --connection local --list-hosts --extra-vars @${SECRETS_FILE} --extra-vars plone_instance_name=testplone --extra-vars plone_install_method=standalone tests/test-playbook.yml
ansible-playbook --inventory tests/inventory --connection local --syntax-check --extra-vars @${SECRETS_FILE} --extra-vars plone_instance_name=testplone --extra-vars plone_install_method=standalone tests/test-playbook.yml
ansible-playbook --inventory tests/inventory --connection local --list-hosts --extra-vars @tests/${SECRETS_FILE} --extra-vars plone_instance_name=testplone --extra-vars plone_install_method=standalone tests/test-playbook.yml
ansible-playbook --inventory tests/inventory --connection local --syntax-check --extra-vars @tests/${SECRETS_FILE} --extra-vars plone_instance_name=testplone --extra-vars plone_install_method=standalone tests/test-playbook.yml
# Run the first time
ansible-playbook --inventory tests/inventory --connection local --extra-vars @${SECRETS_FILE} --extra-vars plone_instance_name=testplone --extra-vars plone_install_method=standalone tests/test-playbook.yml
ansible-playbook --inventory tests/inventory --connection local --extra-vars @tests/${SECRETS_FILE} --extra-vars plone_instance_name=testplone --extra-vars plone_install_method=standalone tests/test-playbook.yml
- >
ansible-playbook --inventory tests/inventory --connection local --extra-vars @${SECRETS_FILE} --extra-vars plone_instance_name=testplone --extra-vars plone_install_method=standalone tests/test-playbook.yml
ansible-playbook --inventory tests/inventory --connection local --extra-vars @tests/${SECRETS_FILE} --extra-vars plone_instance_name=testplone --extra-vars plone_install_method=standalone tests/test-playbook.yml
| grep -q 'changed=0.*failed=0'
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)
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