# apache removal

**URL:** <https://forum.ansible.com/t/apache-removal/38551>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [October 26, 2023, 6:57pm UTC](https://forum.ansible.com/t/apache-removal/38551 "2023-10-26T18:57:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thaddeus\_Fernandes](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@Thaddeus\_Fernandes](https://forum.ansible.com/u/Thaddeus_Fernandes)\
**Post date:** [October 26, 2023, 6:57pm UTC](https://forum.ansible.com/t/apache-removal/38551/1 "2023-10-26T18:57:28Z")

</div>

hi all,

I am trying to uninstall apache from my inventory via playbook but nothing is happening.  
httpd still exists on the ubuntu servers.

Im not sure what have I missed here.

 ![Screenshot 2023-10-26 at 20.54.57.png](https://us1.discourse-cdn.com/ansible/original/2X/e/e93283da1c4431fca754819702b22e964625c115.jpeg)

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [October 26, 2023, 9:06pm UTC](https://forum.ansible.com/t/apache-removal/38551/2 "2023-10-26T21:06:59Z")

</div>

The package is called “apache2” on Ubuntu…

> **(attachments)**
>
> ![Screenshot 2023-10-26 at 20.54.57.jpg](https://us1.discourse-cdn.com/ansible/original/2X/e/e93283da1c4431fca754819702b22e964625c115.jpeg)

---

<div class="post-metadata">

**Author:** ![Prady\_A](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prady_a/32/4792_2.png) [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Post date:** [October 27, 2023, 12:21am UTC](https://forum.ansible.com/t/apache-removal/38551/3 "2023-10-27T00:21:07Z")

</div>

And whatever you try to achieve via ansible automation. Would suggest to do a manual execution first for debugging…

> **(attachments)**
>
> ![Screenshot 2023-10-26 at 20.54.57.jpg](https://us1.discourse-cdn.com/ansible/original/2X/e/e93283da1c4431fca754819702b22e964625c115.jpeg)

---

<div class="post-metadata">

**Author:** ![Thaddeus\_Fernandes](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@Thaddeus\_Fernandes](https://forum.ansible.com/u/Thaddeus_Fernandes)\
**Post date:** [October 27, 2023, 5:56am UTC](https://forum.ansible.com/t/apache-removal/38551/4 "2023-10-27T05:56:23Z")

</div>

Yes I just tried that and it works like a charm thanks a lot.

> **(attachments)**
>
> ![Screenshot 2023-10-26 at 20.54.57.jpg](https://us1.discourse-cdn.com/ansible/original/2X/e/e93283da1c4431fca754819702b22e964625c115.jpeg)
