Skip to Content
Security Automation with Ansible 2
book

Security Automation with Ansible 2

by Akash Mahajan, MADHU AKULA
December 2017
Intermediate to advanced
364 pages
7h 30m
English
Packt Publishing
Content preview from Security Automation with Ansible 2

How to enable WinRM in Windows

To simplify this process, Ansible provides a PowerShell script, which needs to be run as an administrator in the PowerShell console. Download the PowerShell script from https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1.

On a Windows machine, open the command prompt as an administrator and run the following command:

powershell.exe -File ConfigureRemotingForAnsible.ps1 -CertValidityDays 100
Make sure you opened port 5986 for the Windows machine in firewall rules. For more references, about Windows setup, visit http://docs.ansible.com/ansible/latest/intro_windows.html.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing DevOps with Ansible 2

Implementing DevOps with Ansible 2

Jonathan McAllister
Practical Ansible 2

Practical Ansible 2

Daniel Oh, James Freeman, Fabio Alessandro Locati

Publisher Resources

ISBN: 9781788394512Supplemental Content