figure out what synchronize is now

This commit is contained in:
Steven Robertson 2020-09-20 17:15:29 -07:00
parent e8fb4071b2
commit 49dd8eee1a
2 changed files with 4 additions and 7 deletions

View File

@ -378,11 +378,10 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase):
if module_name == 'ansible.legacy.ping' and type(self).__name__ == 'wait_for_connection':
self._connection.context = None
if module_name == 'ansible.posix.synchronize':
print("SYNCHRONIZE")
else:
print("NOT SYNCHRONIZE")
print(type(self._connection))
if 'synchronize' in module_name:
print('SYNCHRONIZE')
print(module_name)
print(type(self._connection))
self._connection._connect()
result = ansible_mitogen.planner.invoke(

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python
# Wrap ansible-playbook, setting up some test of the test environment.
from __future__ import print_function
import json
import os
import sys
@ -57,5 +56,4 @@ else:
args += ['-e', json.dumps(extra)]
args += sys.argv[1:]
print(args[0], "--", args)
os.execvp(args[0], args)