diff --git a/bin/ansible-pull b/bin/ansible-pull index 284139f0432..677bf60b022 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: