Ansible, windows, and package management

29 views
Skip to first unread message

b...@tanners.org

unread,
Apr 25, 2018, 12:30:53 PM4/25/18
to Ansible Project
I find package management on Windows convoluted.

Is there a strategy for managing packages with Ansible when the packages install into the user's home profile?

When I attempt to uninstall a package that installs into a user's home profile with Ansible as Administrator things fail.



Mike Fennemore

unread,
Apr 25, 2018, 1:15:55 PM4/25/18
to Ansible Project
Tried using chocolatey with win_choco?

Bob Tanner

unread,
Apr 25, 2018, 1:20:09 PM4/25/18
to ansible...@googlegroups.com
Yes, for packages in the chocolatey repository. 


On Apr 25, 2018, at 12:15 PM, Mike Fennemore <mike.fe...@sentia.com> wrote:

Tried using chocolatey with win_choco?

--
Bob Tanner <b...@tanners.org>         

Mike Fennemore

unread,
Apr 25, 2018, 2:54:15 PM4/25/18
to Ansible Project
What version of Ansible are you using? Do you have an example of the inventory and playbook results?

Jordan Borean

unread,
Apr 25, 2018, 5:24:35 PM4/25/18
to Ansible Project
Package management on Windows is pretty poor, Microsoft does not have an official way of doing things like yum/apt/dnf. Using win_chocolatey is the best and easiest way forward but unfortunately not every package has been made to a high standard so you get some problems there. I usually find, running win_chocolatey with become solves the majority of the issues with the module as it runs like would if you were to do it manually on the host.

Thanks

Jordan
Reply all
Reply to author
Forward
0 new messages