diff --git a/.ci/ansible_install.py b/.ci/ansible_install.py index b4996e76..5ac008c4 100755 --- a/.ci/ansible_install.py +++ b/.ci/ansible_install.py @@ -27,3 +27,5 @@ ci_lib.run_batches(batches) # after ansible is installed, install common collections until ansible==2.10 comes out ci_lib.run('ansible-galaxy collection install community.general') +ci_lib.run('ansible-galaxy collection install ansible.netcommon') +ci_lib.run('ansible-galaxy collection install ansible.posix') diff --git a/.ci/debops_common_install.py b/.ci/debops_common_install.py index 2b15af3e..157a3a4c 100755 --- a/.ci/debops_common_install.py +++ b/.ci/debops_common_install.py @@ -21,3 +21,5 @@ ci_lib.run_batches([ # after ansible is installed, install common collections until ansible==2.10 comes out ci_lib.run('ansible-galaxy collection install community.general') +ci_lib.run('ansible-galaxy collection install ansible.netcommon') +ci_lib.run('ansible-galaxy collection install ansible.posix') diff --git a/.ci/localhost_ansible_install.py b/.ci/localhost_ansible_install.py index dd9fa025..8b7cf62e 100755 --- a/.ci/localhost_ansible_install.py +++ b/.ci/localhost_ansible_install.py @@ -21,4 +21,6 @@ batches = [ ci_lib.run_batches(batches) # after ansible is installed, install common collections until ansible==2.10 comes out -ci_lib.run('ansible-galaxy collection install community.general') \ No newline at end of file +ci_lib.run('ansible-galaxy collection install community.general') +ci_lib.run('ansible-galaxy collection install ansible.netcommon') +ci_lib.run('ansible-galaxy collection install ansible.posix') diff --git a/ansible_mitogen/mixins.py b/ansible_mitogen/mixins.py index 006519a3..34e71b63 100644 --- a/ansible_mitogen/mixins.py +++ b/ansible_mitogen/mixins.py @@ -378,11 +378,6 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase): if module_name == 'ansible.legacy.ping' and type(self).__name__ == 'wait_for_connection': self._connection.context = None - # throw error if synchronize collection detected, this is what happens when running synchronize locally - # tests are being weird I think - if module_name == 'ansible.posix.synchronize': - A - self._connection._connect() result = ansible_mitogen.planner.invoke( ansible_mitogen.planner.Invocation(