cleanmgr.exe is an annoying one to run in a non-interactive process. Unless you get it just right it will run and just wait for user input which won't happen as there's no UI. I've been able to get it working which you can see at https://github.com/jborean93/packer-windoze/blob/master/roles/cleanup-winsxs/tasks/cleanmgr.yml#L61-L79. The state flag number isn't important, was just a number I chose to have a bit of fun but it can be anything as long as they match each other.
Thanks Jordan -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/789f7e03-996c-4e2a-9f0b-1917162b06d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
