Commit 9f29e39d by Brian Coca

give more matching options for ansible-pull

parent e46b1e8d
......@@ -18,6 +18,7 @@
########################################################
import datetime
import os
import platform
import random
import shutil
import socket
......@@ -107,7 +108,9 @@ class PullCLI(CLI):
# Build Checkout command
# Now construct the ansible command
limit_opts = 'localhost:%s:127.0.0.1' % socket.getfqdn()
node = platform.node()
host = socket.getfqdn()
limit_opts = 'localhost:%s:127.0.0.1' % ':'.join(set([host, node, host.split('.')[0], node.split('.')[0]]))
base_opts = '-c local "%s"' % limit_opts
if self.options.verbosity > 0:
base_opts += ' -%s' % ''.join([ "v" for x in range(0, self.options.verbosity) ])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment