you need something like this: - ansible.windows.win_shell: 'Get-WmiObject -Class Win32_Product | Select-Object Name, Version' пятница, 21 января 2022 г. в 19:22:46 UTC+3, [email protected]:
> Occassionally, at my office, we get security alerts for vulnerabilities. > I have a playbook that will get run "rpm -q" on the package name and it > returns the version installed. For example, google-chrome-stable. > > How can I accomplish this on our Windows servers? I have Ansible working > for them and have done basic stuff such as win_ping, win_command, etc. But > I'd like to be able to check the software versions without using RDP to > connect to each server and check the version manually. > > Thanks for any thoughts, > Harry > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/131ebd50-50c8-403e-9daf-fc806a9bcd9dn%40googlegroups.com.
