Skip to content

Commit

Permalink
Setup certificate authority on Windows Server
Browse files Browse the repository at this point in the history
Certificate Authority feature is required by test test_winsyncmigrate.py
  • Loading branch information
sorlov-rh authored and netoarmando committed Nov 25, 2019
1 parent fba381c commit 191ff1c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- name: Install Certification Authority feature
win_feature:
name: Adcs-Cert-Authority
include_management_tools: yes

- name: setup Certification Authority
win_shell: Install-AdcsCertificationAuthority -CAType EnterpriseRootCA -Force
args:
creates: C:\Windows\System32\CertSrv\CertEnroll
2 changes: 2 additions & 0 deletions ansible/roles/windows/ad-root/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
- name: Restart
win_reboot:
test_command: 'dsquery user -name Administrator'

- import_tasks: certificate-authority.yaml

0 comments on commit 191ff1c

Please sign in to comment.