Ansible Unhandled exception while executing module: Exception calling \"CreateProcess\"
search cancel

Ansible Unhandled exception while executing module: Exception calling \"CreateProcess\"

book

Article ID: 252981

calendar_today

Updated On:

Products

Control Compliance Suite Control Compliance Suite Standards Server Control Compliance Suite Standards Module

Issue/Introduction

When trying to install CCS 12.6.x using Ansible scripts, we are seeing the following error.

TASK [Execute CCS silent installer using psexec] ***************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: at <ScriptBlock>, <No file>: line 142
fatal: [EXAMPLE.COM]: FAILED! => {"changed": false, "msg": "Unhandled exception while executing module: Exception calling \"CreateProcess\" with \"6\" argument(s): \"CreateProcessW() failed (Access is denied, Win32ErrorCode 5)\""}

Cause

This is caused by a security product blocking the execution.

Resolution

You will need to get the commands whitelisted in your security program, SEP, Crowdstrike, Carbon Black etc.

Additional Information

https://github.com/ansible/ansible/issues/50042