diff --git a/plugins/action/pgp_keyring.py b/plugins/action/pgp_keyring.py index 42b5abc868..cee06aec4e 100644 --- a/plugins/action/pgp_keyring.py +++ b/plugins/action/pgp_keyring.py @@ -32,10 +32,11 @@ class ActionModule(ActionBase): task_vars = dict() validation_result, new_module_args = self.validate_argument_spec( - argument_spec = {'src': {'required': True, 'type': 'str'}, - 'dest': {'required': True, 'type': 'str'}, - 'follow': {'type': 'bool', 'default': False} - } + argument_spec=dict( + src=dict(type='str', required=True), + dest=dict(type='str', required=True), + follow=dict(type='bool', default=False) + ) ) super(ActionModule, self).run(tmp, task_vars) @@ -75,7 +76,8 @@ class ActionModule(ActionBase): ), ) # call with ansible.legacy prefix to eliminate collisions with collections while still allowing local override - copy_action = self._shared_loader_obj.action_loader.get('ansible.legacy.copy', + copy_action = self._shared_loader_obj.action_loader.get( + 'ansible.legacy.copy', task=new_task, connection=self._connection, play_context=self._play_context,