When a rundeck option is a text string with space(as highlighted below), and nested in the ansible --extra-vars, it will be trunked or cause job failure if trying to use quote(either single or double quote) to escape the space.the same command works on unix command line, docker exec on unix and on rundeck directly without docker plugin. example of the command.
Example of the command line:
docker exec -d rundeck-agent ansible localhost -c local -i 'localhost,' -m include_role -a name=servicenow --extra-vars "servicenow_username=admin servicenow_password=password servicenow_instance_name=instance_name servicenow_ticket_action=new servicenow_ticket_type=sc_req_item servicenow_ticket_subjectline='this is a test ticket from rundeck' servicenow_ticket_comments='this is a test comment from command line docker'"
When a rundeck option is a text string with space(as highlighted below), and nested in the ansible --extra-vars, it will be trunked or cause job failure if trying to use quote(either single or double quote) to escape the space.the same command works on unix command line, docker exec on unix and on rundeck directly without docker plugin. example of the command.
Example of the command line: docker exec -d rundeck-agent ansible localhost -c local -i 'localhost,' -m include_role -a name=servicenow --extra-vars "servicenow_username=admin servicenow_password=password servicenow_instance_name=instance_name servicenow_ticket_action=new servicenow_ticket_type=sc_req_item servicenow_ticket_subjectline='this is a test ticket from rundeck' servicenow_ticket_comments='this is a test comment from command line docker'"