X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fpackaging%2Ftest-ansible-deb-custom-config.sh;h=fbf5a7e8fa743b861411287e67f1808aa4755059;hb=5f2492cae9fcc63fc22648f7fb1a553513eb5cd2;hp=64b788e0dea5e7bc5e67f68032c345b8fc898b30;hpb=6a2a617621a8de6d9230d64f20d40ddd9469a907;p=releng%2Fbuilder.git diff --git a/jjb/packaging/test-ansible-deb-custom-config.sh b/jjb/packaging/test-ansible-deb-custom-config.sh index 64b788e0d..fbf5a7e8f 100644 --- a/jjb/packaging/test-ansible-deb-custom-config.sh +++ b/jjb/packaging/test-ansible-deb-custom-config.sh @@ -7,16 +7,16 @@ sudo apt-get remove opendaylight && sudo apt-get purge opendaylight sudo rm -rf /opt/opendaylight # Install OpenDaylight via repo using example Ansible playbook -sudo ansible-playbook -i "localhost," -c local $WORKSPACE/packaging-ansible/examples/deb_repo_api.yml --extra-vars "@$WORKSPACE/packaging-ansible/examples/log_vars.json" +sudo ansible-playbook -i "localhost," -c local "$WORKSPACE"/packaging-ansible/examples/deb_repo_api.yml --extra-vars "@$WORKSPACE/packaging-ansible/examples/log_vars.json" # Create Ansible custom module directories sudo mkdir -p /usr/share/ansible/plugins/modules # Copy the custom module to the directory above -sudo cp $WORKSPACE/packaging-ansible/library/odl_usermod.py /usr/share/ansible/plugins/modules/ +sudo cp "$WORKSPACE"/packaging-ansible/library/odl_usermod.py /usr/share/ansible/plugins/modules/ # Execute the odl-user-test playbook -sudo ansible-playbook -i "localhost," -c local $WORKSPACE/packaging-ansible/tests/test-odl-users.yaml -v +sudo ansible-playbook -i "localhost," -c local "$WORKSPACE"/packaging-ansible/tests/test-odl-users.yaml -v # Test the custom log configurations -sudo ansible-playbook -i "localhost," -c local $WORKSPACE/packaging-ansible/tests/test-odl-logs.yaml -e test_log_level=DEBUG -e test_log_mechanism=console -v +#sudo ansible-playbook -i "localhost," -c local "$WORKSPACE"/packaging-ansible/tests/test-odl-logs.yaml -e test_log_level=DEBUG -e test_log_mechanism=console -v