Hello,

This works just fine for me:
- name: uninstall apache-related packages
  apt: >
    pkg={{ item }} 
    state=absent
    purge=yes
    force=yes
  with_items:
    - apache2*
  sudo: yes



On Wednesday, 6 August 2014 10:19:51 UTC+2, Laer Cius wrote:
>
> Hi, 
>
> Is there a way, other that with a bash script, to do this 
> command please (in Ansible of course.. :) )? 
>
> $ apt-get remove package* 
>
> Thank you, 
>
> -- 
> “One original thought is worth a thousand mindless quotings.” 
> “Le vrai n'est pas plus sûr que le probable.” 
>
>                                               Diogene Laerce 
>
>
>

-- 
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/cce46f50-08cc-41b3-961e-3b7932c4cc01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to