# Execute module only, if package is installed

**URL:** <https://forum.ansible.com/t/execute-module-only-if-package-is-installed/30594>\
**Category:** Ansible Developer\
**Created:** [June 18, 2019, 2:30pm UTC](https://forum.ansible.com/t/execute-module-only-if-package-is-installed/30594 "2019-06-18T14:30:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denny\_Fuchs](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@Denny\_Fuchs](https://forum.ansible.com/u/Denny_Fuchs)\
**Post date:** [June 18, 2019, 2:30pm UTC](https://forum.ansible.com/t/execute-module-only-if-package-is-installed/30594/1 "2019-06-18T14:30:11Z")

</div>

hi,

I’m pretty new to Ansible (2.8 on Debian Stretch) and we have very simple playbook for upgrading packages, including run rkhunter / puppet / reboot etc. My problem is, that I do not have puppet an all nodes installed, so I tried:
