I want to set a playbook variable to the root of my hg tree, i.e. capture the output of the “hg root” command run on my local host. How do I do that?
‘register’ and perhaps ‘set_fact’ are probably what you need - here’s an example:
`
$ cat set_fact.yml