# What is the best practice to manage project \`foobar\` uninstall action ?

**URL:** <https://forum.ansible.com/t/what-is-the-best-practice-to-manage-project-foobar-uninstall-action/29272>\
**Category:** Ansible Project\
**Created:** [December 16, 2018, 10:13am UTC](https://forum.ansible.com/t/what-is-the-best-practice-to-manage-project-foobar-uninstall-action/29272 "2018-12-16T10:13:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephane\_Klein1](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Stephane\_Klein1](https://forum.ansible.com/u/Stephane_Klein1)\
**Post date:** [December 16, 2018, 10:13am UTC](https://forum.ansible.com/t/what-is-the-best-practice-to-manage-project-foobar-uninstall-action/29272/1 "2018-12-16T10:13:06Z")

</div>

Hi,

What is the best practice to manage project `foobar` uninstall action ?

a. Write two playbooks example: `foobar_install.yml` and `foobar_uninstall.yml`  
and two roles `roles/foobar_install_and_upgrade/...` and `roles/foobar_uninstall/...`

b. Or only one playbook `foobar` and one roles `roles/foobar/...` and use `--extra-vars` to select action to execute `install` (by default) or `uninstall` ?  
Something as explained in [https://medium.com/@mykidong/howto-organize-ansible-playbook-to-install-uninstall-start-and-stop-kafka-and-kafka-connect-e7250c5def9d](https://medium.com/@mykidong/howto-organize-ansible-playbook-to-install-uninstall-start-and-stop-kafka-and-kafka-connect-e7250c5def9d)

Best regards,  
Stéphane

---

<div class="post-metadata">

**Author:** ![Stephane\_Klein1](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Stephane\_Klein1](https://forum.ansible.com/u/Stephane_Klein1)\
**Post date:** [December 18, 2018, 1:17pm UTC](https://forum.ansible.com/t/what-is-the-best-practice-to-manage-project-foobar-uninstall-action/29272/2 "2018-12-18T13:17:37Z")

</div>

I got one answer here: [https://www.reddit.com/r/ansible/comments/a7aejq/what\_is\_the\_best\_practice\_to\_manage\_project/ec1i98u/](https://www.reddit.com/r/ansible/comments/a7aejq/what_is_the_best_practice_to_manage_project/ec1i98u/)

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [December 18, 2018, 1:19pm UTC](https://forum.ansible.com/t/what-is-the-best-practice-to-manage-project-foobar-uninstall-action/29272/3 "2018-12-18T13:19:12Z")

</div>

Sounds correct by me.

---

<div class="post-metadata">

**Author:** ![chafik\_bel](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@chafik\_bel](https://forum.ansible.com/u/chafik_bel)\
**Post date:** [December 18, 2018, 3:30pm UTC](https://forum.ansible.com/t/what-is-the-best-practice-to-manage-project-foobar-uninstall-action/29272/4 "2018-12-18T15:30:16Z")

</div>

LGTM as well.

---

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [December 18, 2018, 9:22pm UTC](https://forum.ansible.com/t/what-is-the-best-practice-to-manage-project-foobar-uninstall-action/29272/5 "2018-12-18T21:22:51Z")

</div>

What is “LGTM”?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [December 19, 2018, 3:54pm UTC](https://forum.ansible.com/t/what-is-the-best-practice-to-manage-project-foobar-uninstall-action/29272/6 "2018-12-19T15:54:29Z")

</div>

Looks Good To Me  
[https://en.wiktionary.org/wiki/LGTM](https://en.wiktionary.org/wiki/LGTM)
