There are no module right now that can do that for Windows. There was a PR to add a module that did both but due to the complexity it was decided it needed to be split into different modules along the lines of volumes and partitions. This work would need to be done and if you are interested the PR for it is here https://github.com/ansible/ansible/pull/27634.
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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/941b834f-2829-4bad-b829-8f25b48fa444%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.