client-pull-installation/roles/prereq/templates/noderole.fact

8 lines
205 B
Plaintext
Raw Normal View History

#!/usr/bin/env python
from urllib import urlopen
from yaml import load
from json import dumps
2016-02-18 00:34:40 +00:00
print(dumps(load(urlopen('http://{{ ansible_local.domain.serverfqdn }}:3000/ansible_host?host=localhost'))))