>
> $ apt-get remove package*
>
Reading a bit more carefully, if your problem is with the glob, maybe try a
playbook like this:
---
- hosts: all
tasks:
- command: dpkg-query -f '${Package}\n' -W 'package*'
register: query
- apt: name={{item}} state=absent
with_items: query.stdout_lines
Cheers,
Paul
--
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/8ab71b5d-2d97-412d-8980-45ca3f59865f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.