Project

General

Profile

Actions

Bug #21747

closed

Ansible Error 500 when importing roles

Added by Regis McCall over 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hello,

I'm trying to get ansible roles imported into foreman. I installed a test role using the following command:

ansible-galaxy install elastic.elasticsearch

- Ansible galaxy imports the files correctly into /etc/ansible/roles and this directory is clearly defined in the /etc/ansible.cfg file.
- Once I login to foreman, I go to "Configure" >> "Ansible", "Roles"
- Foreman states that there are no available roles, so I tried to import these items by clicking "Import" >> "Import from Foreman Host". This option reports "No changes in roles detected".
- I then try to click "Import" >> "Import from foreman.xxxx.io" and I receive the following error: "Oops, we're sorry but something went wrong 500 Internal Server Error"
- I looked through proxy, dyn flow, auth logs and I do not see any error message that can help.

Playbook tests run with no issues and from foreman I can run ansible on a host just fine.
I do not know of a place (or I did not find one in any documentation) that allows you to set where foreman looks for roles other than the ansible.cfg
- All permissions look to be set correctly on all necessary folders.

I'm going to try a few different foreman builds. What am I missing? If this is the wrong place, I apologize.

Foreman Release: 1.15
Ansible version: 2.4.1.0
Linux (uname -a): foreman.xxxxx.io 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Linux: Latest version of CentOS7

Actions

Also available in: Atom PDF