Merge "Move dlux Sonar scan to Sonarcloud"
[releng/builder.git] / jjb / packaging / test-ansible-rpm-default-config.sh
index a0319c48b022cffe6742fb38490ddfc946b91705..47d3c95abe70fe9c0f2d1429d0dd27fdb977ffa3 100644 (file)
@@ -7,16 +7,16 @@ sudo yum remove opendaylight -y
 sudo rm -rf /opt/opendaylight
 
 # Install OpenDaylight with custom config via repo using example Ansible playbook
-sudo ansible-playbook -i "localhost," -c local $WORKSPACE/packaging-ansible/examples/rpm_10_devel_odl_api.yml
+sudo ansible-playbook -i "localhost," -c local "$WORKSPACE"/packaging-ansible/examples/rpm_10_devel_odl_api.yml
 
 # 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=INFO -e test_log_mechanism=file -v
+#sudo ansible-playbook -i "localhost," -c local "$WORKSPACE"/packaging-ansible/tests/test-odl-logs.yaml -e test_log_level=INFO -e test_log_mechanism=file -v