title: Using RPM module in Ansible to remove a package
body: <p>I am trying to delete a package in the Ansible playbook, but it fails.
  Error is <strong>rpm: no packages given for erase</strong>. Below is the task i am trying to run.</p>
  
  <pre><code>- name: remove the X Windows System packages
    shell: rpm -e --nodeps `yum list installed |grep xorg-X11* |cut -d  ' ' -f1`
  </code></pre>
  
  <p>I tried this manually and it works, Is there any separate module like rpm mpdule to execute this task in the ansible playbook.</p>
  
  <p>Thank you..</p>