How do i generate Add Host URL from cli?

Hi All,

As we can see below:

docker run -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v0.11.0 http://Rancher.server.ip.address:8080/v1/scripts/F2AE7A017CB42E4BEE5B:1461294000000:FzcgJHqTFSrN4VDZkOB6vXrdqFU

There are 3 strings after v1/scripts/ XXX:XXX:XXX

Is there a way I could get this string combination from cli?

I am try to make a ansible runbook for this add host task.

Any suggestion?

Thanks,
Martin

There is published article that includes an Ansible playbook role for this that you can find here: http://rancher.com/using-ansible-with-docker-to-deploy-a-wordpress-service-on-rancher/

Regards

Fraser.