I all ready tried that, same result bascily.

ok: [localhost] => (item=[u'b43-openfwwf', u'b43-fwcutter', u'hexchat', u
'libreoffice*', u'claws-mail']) => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "autoremove": true, 
            "conf_file": null, 
            "disable_gpg_check": false, 
            "disablerepo": [], 
            "enablerepo": [], 
            "installroot": "/", 
            "list": null, 
            "name": [
                "b43-openfwwf", 
                "b43-fwcutter", 
                "hexchat", 
                "libreoffice*", 
                "claws-mail"
            ], 
            "state": "absent"
        }
    }, 
    "item": [
        "b43-openfwwf", 
        "b43-fwcutter", 
        "hexchat", 
        "libreoffice*", 
        "claws-mail"
    ], 
    "msg": "Nothing to do"
}



On Friday, 2 March 2018 12:35:45 UTC+2, Kai Stian Olstad wrote:
>
> On 02.03.2018 11:24, @rabin wrote: 
> > I like to use Ansible to remove few packages, but it seem not to 
> > support 
> > the wildecard option for package name matching. 
> > 
> > - name: Remove Packages 
> >  package: 
> >    name: "{{ item }}" 
> >    state: absent 
> >  tags: 
> >    - packages_remove 
> >  with_items: 
> >    - b43-* 
> >    - hexchat 
> >    - libreoffice* 
> > 
> > 
> > In the above example I was expecting the for "b43-*" to match 
> > b43-openfwwf 
> > and b43-fwcutter but non of them was removed. 
> > same for libreoffice, here is the output with -vvv 
>
> Package is a very generic module with no extra functionality. 
> For more functionality you need to use the module for your package 
> system. 
>
> -- 
> Kai Stian Olstad 
>

-- 
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/1cc5daef-8b47-4638-bf0f-7ad902252a54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to