I am trying to remove a rpm package using ansible playbook. I tried to do as shown below but its not working. Any idea how this rpm package can be removed. Note: This rpm package is not present in yum
--- - hosts: all gather_facts: false become: true tasks: - name: stop rscd server systemd: state: stopped name: rscd register: output notify: - remove rscd handlers: - name: remove rscd shell: rpm -e '{{ item }}' The above playbook when I run it runs but it just stops the process alone but never removes the package. Any idea what I am doing wrong? -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/CACRJvjmn7S5%3D-6Sc0Rn_ftVMMHpi3n4gQBXWn0ZuFtKbwHUa4g%40mail.gmail.com.