ansible-playbook install.yml error with Set the value of 'postgres_data_dir

once i ran with - ansible-playbook install.yml
getting the below error - actually the variable already exist with "/tmp/pgdocker. please help
TASK [check_vars : postgres_data_dir should be defined] ************************
fatal: [web-centos1]: FAILED! => {
“assertion”: “postgres_data_dir is defined and postgres_data_dir != ‘’”,
“changed”: false,
“evaluated_to”: false,
“failed”: true,
“msg”: “Set the value of ‘postgres_data_dir’ in the inventory file.”

ansible-playbook -i inventory install.yml

You missed passing in the inventory.

Thank you very much for pointing this :slight_smile: it works now.