|
|
|
@ -66,13 +66,13 @@ def get_cowsay_info():
|
|
|
|
cowsay, noncow = get_cowsay_info()
|
|
|
|
cowsay, noncow = get_cowsay_info()
|
|
|
|
|
|
|
|
|
|
|
|
def log_lockfile():
|
|
|
|
def log_lockfile():
|
|
|
|
tempdir = tempfile.gettempdir()
|
|
|
|
tempdir = tempfile.gettempdir()
|
|
|
|
uid = os.getuid()
|
|
|
|
uid = os.getuid()
|
|
|
|
path = os.path.join(tempdir, ".ansible-lock.%s" % uid)
|
|
|
|
path = os.path.join(tempdir, ".ansible-lock.%s" % uid)
|
|
|
|
if not os.path.exists(path):
|
|
|
|
if not os.path.exists(path):
|
|
|
|
fh = open(path, 'w')
|
|
|
|
fh = open(path, 'w')
|
|
|
|
fh.close()
|
|
|
|
fh.close()
|
|
|
|
return path
|
|
|
|
return path
|
|
|
|
|
|
|
|
|
|
|
|
LOG_LOCK = open(log_lockfile(), 'r')
|
|
|
|
LOG_LOCK = open(log_lockfile(), 'r')
|
|
|
|
|
|
|
|
|
|
|
|
|