How can i resolve dependencies for ansible 2.7 rpm install

Hello,

Iam installing ansible 2.7 on rhel6,python 2.6 and i got below error.

rpm -ivh ansible-2.7.7-1.el6.ans.noarch.rpm
warning: ansible-2.7.7-1.el6.ans.noarch.rpm: Header V4 RSA/SHA1 Signature, NOKEY
error: Failed dependencies:
PyYAML is needed by ansible-2.7.7-1.el6.ans.noarch
python-jinja2 is needed by ansible-2.7.7-1.el6.ans.noarch
sshpass is needed by ansible-2.7.7-1.el6.ans.noarch

How do i resolve this?

Thanks,
Bharath