ImportError: No module named nailgun.config

ansible

#1

Problem:
Running a playbook task with the module katello_repository_set I am getting the error

TASK [Enable RHEL 7 RPMs repositories] ************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named nailgun.config       
fatal: [myvm15]: FAILED! => {"changed": false, "msg": "The nailgun Python module is required"} 

This is my first and only task using a module from foreman-ansible-modules.

Other Info

I installed nailgun via dnf on Fedora 28 after I started getting the error.

sat-cap-install # sudo dnf list installed nailgun
Installed Packages
nailgun.x86_64              0.9.1-10.fc28              @updates

foreman-ansible-modules cloned to top level playbook directory

This shows my top level directory with ansible.cfg and foreman-ansible-modules.

sat-cap-install # ls -ld *ansible*
-rw-rw-r--. 1 user1 user1  284 May 15 17:46 ansible.cfg
drwxrwxr-x. 8 user1 user1 4096 May 15 17:11 foreman-ansible-modules

I modified my ansible.cfg to use relative directory for foreman-ansible-modules

sat-cap-install # head ansible.cfg 
[defaults]
inventory = inventory

library = foreman-ansible-modules/modules
module_utils = foreman-ansible-modules/module_utils
#inventory = test/inventory/hosts
retry_files_enabled = False

Directory structure of foreman-ansible-modules

sat-cap-install # tree -L1 foreman-ansible-modules/
foreman-ansible-modules/
├── ansible.cfg
├── debug-setup.yml
├── docs
├── LICENSE
├── Makefile
├── modules
├── module_utils
├── README.md
├── requirements-dev.txt
├── requirements.txt
└── test
sat-cap-install # ansible --version
ansible 2.7.10
  config file = /home/user1/Documents/ansible/sat-cap-install/ansible.cfg
  configured module search path = [u'/home/user1/Documents/ansible/sat-cap-install/foreman-ansible-modules/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.15 (default, Oct 15 2018, 15:24:06) [GCC 8.1.1 20180712 (Red Hat 8.1.1-5)]

Foreman and Proxy versions:
Satellite 6.4

Thank-you for any advice.