[Solved] Java Quoting string variables

You start by taking the string. ansible-playbook delete.yml –extra-vars “host=5.955.595 user=root pass=anotherpw vm=myVm” Then you escape all special characters. In this case, that’s just the 2 double-quotes. ansible-playbook delete.yml –extra-vars \”host=5.955.595 user=root pass=anotherpw vm=myVm\” Then you surround that with double-quotes, to make it a Java string literal. “ansible-playbook delete.yml –extra-vars \”host=5.955.595 user=root pass=anotherpw vm=myVm\”” Then … Read more