# ERROR! the role 'dev-sec.ssh-hardening' was not found

**URL:** <https://forum.ansible.com/t/error-the-role-dev-sec-ssh-hardening-was-not-found/31389>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 30, 2019, 3:51am UTC](https://forum.ansible.com/t/error-the-role-dev-sec-ssh-hardening-was-not-found/31389 "2019-09-30T03:51:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Z\_M1](https://avatars.discourse-cdn.com/v4/letter/z/439d5e/32.png) [@Z\_M1](https://forum.ansible.com/u/Z_M1)\
**Post date:** [September 30, 2019, 3:51am UTC](https://forum.ansible.com/t/error-the-role-dev-sec-ssh-hardening-was-not-found/31389/1 "2019-09-30T03:51:33Z")

</div>

Hi all,

I’m new to AWX, but not new to Ansible. When running a job in AWX it can’t seem to find my roles, even though they exist in /var/lib/awx/projects/\_8\_\_ansible\_internal\_playbooks/roles

It keeps trying to look in the wrong directory like /var/lib/awx/projects/\_8\_\_ansible\_internal\_playbooks/playbook-name or /var/lib/awx/projects/\_8\_\_ansible\_internal\_playbooks/playbook-name/roles

I can see the roles do exist in /var/lib/awx/projects/\_8\_\_ansible\_internal\_playbooks/roles with docker exec.

I thought I could put a variable like role\_path: …/roles in the job template but that doesn’t seem to work. Any ideas?

Full error output:

`ERROR! the role 'dev-sec.ssh-hardening' was not found in /var/lib/awx/projects/_8 __ansible_internal_playbooks/ansible-ssh-hardening/roles:/var/lib/awx/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/var/lib/awx/projects/_8__ ansible_internal_playbooks/ansible-ssh-hardening`

---

<div class="post-metadata">

**Author:** ![iamroddo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/iamroddo/32/321_2.png) [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Post date:** [September 30, 2019, 6:10am UTC](https://forum.ansible.com/t/error-the-role-dev-sec-ssh-hardening-was-not-found/31389/2 "2019-09-30T06:10:29Z")

</div>

Do you transfer the roles directly to AWX or let AWX grab them from Git via specifying them in roles/requirements.yml? This makes it easier to provision AWX and also makes it easier To reuse roles.

---

<div class="post-metadata">

**Author:** ![Z\_M1](https://avatars.discourse-cdn.com/v4/letter/z/439d5e/32.png) [@Z\_M1](https://forum.ansible.com/u/Z_M1)\
**Post date:** [September 30, 2019, 8:23am UTC](https://forum.ansible.com/t/error-the-role-dev-sec-ssh-hardening-was-not-found/31389/3 "2019-09-30T08:23:36Z")

</div>

Hi Rod,

I have them grabbed via git/galaxy using roles/requirements.yml currently. Every time I run a new job it fetches my playbook directory and makes sure it pulls the latest roles via requirements.yml
