-
Notifications
You must be signed in to change notification settings - Fork 24.1k
win_command incorrectly parses args containing spaces #23019
Copy link
Copy link
Closed
Labels
affects_2.2This issue/PR affects Ansible v2.2This issue/PR affects Ansible v2.2affects_2.3This issue/PR affects Ansible v2.3This issue/PR affects Ansible v2.3affects_2.4This issue/PR affects Ansible v2.4This issue/PR affects Ansible v2.4bugThis issue/PR relates to a bug.This issue/PR relates to a bug.moduleThis issue/PR relates to a module.This issue/PR relates to a module.support:coreThis issue/PR relates to code supported by the Ansible Engineering Team.This issue/PR relates to code supported by the Ansible Engineering Team.windowsWindows communityWindows community
Milestone
Metadata
Metadata
Assignees
Labels
affects_2.2This issue/PR affects Ansible v2.2This issue/PR affects Ansible v2.2affects_2.3This issue/PR affects Ansible v2.3This issue/PR affects Ansible v2.3affects_2.4This issue/PR affects Ansible v2.4This issue/PR affects Ansible v2.4bugThis issue/PR relates to a bug.This issue/PR relates to a bug.moduleThis issue/PR relates to a module.This issue/PR relates to a module.support:coreThis issue/PR relates to code supported by the Ansible Engineering Team.This issue/PR relates to code supported by the Ansible Engineering Team.windowsWindows communityWindows community
Type
Fields
Give feedbackNo fields configured for issues without a type.
ISSUE TYPE
COMPONENT NAME
win_command
ANSIBLE VERSION
CONFIGURATION
n/a
OS / ENVIRONMENT
Windows Server 2012 r2 (target host); Ubuntu 16.04 (management system)
SUMMARY
Double-quoted commands containing spaces are incorrectly parsed by "win_command.ps1", causing arguments to be split incorrectly before execution.
STEPS TO REPRODUCE
Example playbook demonstrating this issue:
EXPECTED RESULTS
ACTUAL RESULTS
NOTES