Windows update by ansible

41 views
Skip to first unread message

hit d3

unread,
Jul 16, 2020, 3:16:06 AM7/16/20
to Ansible Project
Hello

I have one of goals to solve a problem by ansible.

My organization have thousands of WIN10 PCs.  However, we have NOT updated WIN10 PCs  to recent update.
We are asking people to do updating.  However, we have already known that there are a lot of machines which have not been updated by an expensive  client software.
If we use the tool to do update.  The a lot of cost will be taken.

So, we found that windows have winRM tech.  so, I wrote inventory.ini as follows;
[test_servers]
#localhost
s12345

#localhost ansible_connection=local
s12355 ansible_connection=winrm

[hostvars]
ansible_user=******
ansible_password=******
ansible_port=5986
ansible_connection=winrm
ansible_winrm_server_cert_validation=ignore

I run as follows;
ansible test_servers -i inventory.ini -m ping

The result is as follows;
[WARNING]: Unhandled error in Python interpreter discovery for host s12345: ssl: auth method ssl requires a username
s12345 | UNREACHABLE! => {
    "changed": false,
    "msg": "ssl: auth method ssl requires a username",
    "unreachable": true

I read a book;
The Linux use must be registered to Win10 Administrator.
According to the comment, I understood that condition.

Although  the Linux machine will be registered, the windows PCs are in a domain.  The domain system will ask to change password every 90 days.

The PCs are NOT server.  So, we can not 
How should I do to close the goal.

Kind Regard

Leandro Scardua

unread,
Jul 16, 2020, 9:03:15 AM7/16/20
to ansible...@googlegroups.com
Hi There,

You`re using the wrong module here.

ansible test_servers -i inventory.ini -m ping



--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f95dfa01-8d99-4304-b287-1d8bf9340562o%40googlegroups.com.


--

Leandro Scardua

DevOps Specialist
Office: 514.447.3456
Mobile: 514.660.8817


Reply all
Reply to author
Forward
0 new messages