hashi_vault lookup not recognizing hvac module

I’m having issues with the hashi_vault lookup plugin.

I’ve verified that Python, pip, and hvac are all installed on both the remote host and the local host. However, whenever I try to run my app_server.yml playbook, I receive a fatal error.

fatal: [app_server01]: FAILED! => {"failed": true, "msg": "An unhandled exception occurred while running the lookup plugin 'hashi_vault'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Please pip install hvac to use this module"}

I’ve verified the installation by running python interactive cli and reading information from the vault server both locally and from the remote host.

`
python

import os
import hvac
client = hvac.Client(url=os.environ[‘VAULT_ADDR’], token=os.environ[‘VAULT_TOKEN’])
print(client.read(‘aws/creds/common_get_s3_build’))

`

Running these commands result in expected JSON output.

app_server.yml:

`