diff --git a/bin/ansible-pull b/bin/ansible-pull index 284139f043..677bf60b02 100755 --- a/bin/ansible-pull +++ b/bin/ansible-pull @@ -40,7 +40,7 @@ import os import subprocess import sys import datetime -import platform +import socket from optparse import OptionParser DEFAULT_PLAYBOOK = 'local.yml' @@ -85,7 +85,7 @@ def main(args): if rc != 0: return rc - hostname = "%s.yml" % platform.node() + hostname = "%s.yml" % socket.getfqdn() if not args: try: