Unable to create SCM Type Manual

Hello Team,

While creating new project with SCM TYPE: Manual getting the following error:

WARNING: There are no available playbook directories in /var/lib/awx/projects. Either that directory is empty, or all of the contents are already assigned to other projects. Create a new directory there and make sure the playbook files can be read by the “awx” system user, or have AWX directly retrieve your playbooks from source control using the SCM Type option above.

I also verified creating a new directory that is not assigned to any other project.

What could be the reason, and how can we solve this?

Thank you,
Dinesh

Check permissions and ownership on the dir you created. Also, there may have to be at least 1 valid looking playbook in the directory to be able to select it.

main.yml

  • hosts: all
    tasks:
  • debug:
    msg: “hello world”

Also (not to state the obvious) if you are running in a container make sure that you are looking in /var/lib/awx/projects of the container, not the host.
Hopefully you are mapping that path to a folder on the host via project_data_dir in the inventory file.

-John

Here is the exact error documented with the solution.
https://www.unixarena.com/2018/10/ansible-how-to-install-and-configure-awx.html/

During the AWX deployment, you might have missed to enable “project_data_dir=/var/lib/awx/projects” in inventory file. Just Re-deploy the AWX by uncommenting the mentioned parameter.

Thank you
Lingesh

Hi,

Please find the steps below -

  1. Enable the project directory in inventory file:

project_data_dir=/var/lib/awx/projects

  1. Create a directory at ‘project_data_dir=/var/lib/awx/projects’ path

#mkdir nec_manual_project

  1. Create a yml file at project_data_dir=/var/lib/awx/projects/nec_manual_project

  2. Deploye AWX:

#ansible-playbook -i inventory install.yml -vv

  1. Now create a project and provide the created directory…

Regards,