- name: Install ADCS with sub features and management tools win_feature: name: Adcs-Cert-Authority state: present include_management_tools: yes register: win_feature
- name: reboot if installing Adcs-Cert-Authority feature requires it win_reboot: when: win_feature.reboot_required
- name: Add ActiveDirectoryCSDsc win_psmodule: name: ActiveDirectoryCSDsc state: present
- name: Configure AdcsCertificationAuthority Powershell DSC win_dsc: resource_name: AdcsCertificationAuthority IsSingleInstance: 'Yes' CAType: 'EnterpriseRootCA' CryptoProviderName: 'RSA#Microsoft Software Key Storage Provider' KeyLength: 2048 HashAlgorithmName: 'SHA256' ValidityPeriod: 'Years' ValidityPeriodUnits: 99 PsDscRunAsCredential_username: ' {{ ansible_user }}' PsDscRunAsCredentual_password: '{{ ansible_password }}'TASK [internal/qa_env_dc : Configure AdcsCertificationAuthority Powershell DSC] *************************************************************************************************************************************************************
fatal: [10.0.136.5]: FAILED! => {"changed": false, "module_stderr": "Exception calling \"Run\" with \"1\" argument(s): \"Exception calling \"Invoke\" with \"0\" argument(s): \"The running command \r\nstopped because the preference variable \"ErrorActionPreference\" or common parameter is set to Stop: Cannot bind \r\nargument to parameter 'String' because it is null.\"\"\r\nAt line:65 char:5\r\n+ $output = $entrypoint.Run($payload)\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException\r\n + FullyQualifiedErrorId : ScriptMethodRuntimeException\r\n \r\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
# Configure ADCS LDAP Over SSLAdd-WindowsFeature Adcs-Cert-Authority -IncludeManagementToolsInstall-AdcsCertificationAuthority -CAType EnterpriseRootCa -CryptoProviderName "RSA#Microsoft Software Key Storage Provider" -KeyLength 2048 -HashAlgorithmName SHA256 -ValidityPeriod Years -ValidityPeriodUnits 99 -Credential $mycreds -Force:$trueCannot bind
argument to parameter 'String' because it is null.\"\"
At line:65 char:5
+ $output = $entrypoint.Run($payload)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ScriptMethodRuntimeException AdcsCertificationAuthority here https://github.com/PowerShell/ActiveDirectoryCSDsc/blob/dev/DSCResources/MSFT_AdcsCertificationAuthority/MSFT_AdcsCertificationAuthority.schema.mof. You can the following fields are required;CATypeCredentialI can see you have defined the CAType but Credential is not. It sounds like instead of running the DSC resource as your ansible user, use the Credential_username/Credential_password itself.--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/G66iHzatZ3U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fc31d864-4364-42b0-b77e-645847aa5535%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.