The example [here](https://github.com/geerlingguy/ansible-for-devops-manuscript/blob/1acd984d0d2c3501b70f2c1586936428189841fe/chapter2.txt#L136) is: ` if ! rpm -qa | grep -qw chrony; then` which can be written simply as: ` if ! rpm -q chrony --quiet; then` or ` if ! rpm -q --quiet chrony; then` Which in turn will use index in the RPM's sqlite DB (or previously BDB). Reporting as directed on [Twitter](https://twitter.com/geerlingguy/status/1678939492831428609?s=20) :-)