change method of obtaining hostname to match ansible/library/setup
This commit is contained in:
parent
2b24131baa
commit
0841ed4796
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import datetime
|
import datetime
|
||||||
import platform
|
import socket
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
DEFAULT_PLAYBOOK = 'local.yml'
|
DEFAULT_PLAYBOOK = 'local.yml'
|
||||||
|
@ -85,7 +85,7 @@ def main(args):
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
return rc
|
return rc
|
||||||
|
|
||||||
hostname = "%s.yml" % platform.node()
|
hostname = "%s.yml" % socket.getfqdn()
|
||||||
|
|
||||||
if not args:
|
if not args:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue