Required some help on Ansible script
- Login and executing some samples required using Ansible playbook.
No need to install PostgreSQL.
We tried with below command but it's not working.
- name: Login to DB and run command
command:PGPASSWORD='{{pgpass_filepath}}'; psql -U "{{ db_user }}" -d "{{ db_name }}" -h "{{ db_host }}" -p 5555-c "select count(*) from student";