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 01:34:40 +01:00
print(dumps(load(urlopen('http://{{ ansible_local.domain.serverfqdn }}:3000/ansible_host?host=localhost'))))