Manage Windows like Linux with Ansible

28
21



Few questions induce fear into the heart of a Linux admin more than, “Hey, can you manage these Windows servers?”

In this session, we’ll show how Ansible does simple, secure, and agentless Windows management with the exact same tools, language, and philosophy used for Linux hosts. You’ll never have to log in to a Windows server again.

Learn more: https://agenda.summit.redhat.com/

source

Previous articleUSE ANSIBLE TO CONNECT TO WINDOWS AZURE VM WITH WINRM
Next articleManage Network di Docker

21 COMMENTS

  1. The poem
    "I hate that you're not SSH, and the shell you called Power,

    I hate the way you install your apps, Windows Update makes me glower,

    I hate the way you must reboot and your web server IIS,

    I hate your complex registry, it always is a mess,

    I hate your junky services and your stupid domain auth,

    and managing your ACLs is sure to leave me rough,

    I hate that you are not linux that i have to learn you at all,

    but with ansible on my tool belt, i don't hate you,

    not even close, not even a little bit, not even at all."

  2. My win_ping keeps throwing an error that says winrm or requests is not installed: No module named ''winrm'. I successfully downloaded pywin using pip2 install pywinrm, then pip3 install pywinrm, then I uninstalled them, created a venv and used pip install pywinrm – yet same error. Any ideas?

  3. Thanks for the video ! This is a really great primer to get Ansible up and running for controlling windows hosts.
    It should be pointed out that basic auth only works in non-domain networks. For most corporate networks you will need to switch to CredSSP. For details check out the Ansible documentation:
    https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html

    This also means that your inventory file looks a bit different:
    [windows]
    host1.yourdomain
    host2.yourdomain
    etc

    [windows:vars]
    ansible[email protected]
    ansible_password=your_top_secret_password
    ansible_connection=winrm
    ansible_winrm_transport=credssp

    As pointed out password should be stored in a vault and sourced to make things safe. The user must have of course administrative rights.