diff --git a/changelogs/fragments/11-action-plugins-use-fqcn.yml b/changelogs/fragments/11-action-plugins-use-fqcn.yml new file mode 100644 index 0000000..a96bd80 --- /dev/null +++ b/changelogs/fragments/11-action-plugins-use-fqcn.yml @@ -0,0 +1,5 @@ +--- +bugfixes: + - patch - fix FQCN usage for action plugin (https://github.com/ansible-collections/ansible.posix/issues/11) + - synchronize - fix FQCN usage for action plugin (https://github.com/ansible-collections/ansible.posix/issues/11) + diff --git a/plugins/action/patch.py b/plugins/action/patch.py index f4ad7ce..3b477d7 100644 --- a/plugins/action/patch.py +++ b/plugins/action/patch.py @@ -64,7 +64,7 @@ class ActionModule(ActionBase): ) ) - result.update(self._execute_module('patch', module_args=new_module_args, task_vars=task_vars)) + result.update(self._execute_module('ansible.posix.patch', module_args=new_module_args, task_vars=task_vars)) except AnsibleAction as e: result.update(e.result) finally: diff --git a/plugins/action/synchronize.py b/plugins/action/synchronize.py index 527c72d..a1f5795 100644 --- a/plugins/action/synchronize.py +++ b/plugins/action/synchronize.py @@ -415,6 +415,6 @@ class ActionModule(ActionBase): _tmp_args['rsync_opts'].append("--rsh=buildah run --") # run the module and store the result - result.update(self._execute_module('synchronize', module_args=_tmp_args, task_vars=task_vars)) + result.update(self._execute_module('ansible.posix.synchronize', module_args=_tmp_args, task_vars=task_vars)) return result