Public bug reported:

Since version 2.8 ansible ships with a module 'gitlab_runner':
https://docs.ansible.com/ansible/latest/modules/gitlab_runner_module.html

Ansible as included in Ubuntu Focal is missing the dependency to python3-gitlab:
https://packages.ubuntu.com/focal/ansible

Using the ansible module results in an error message like:

    "msg": "Failed to import the required Python library (python-gitlab)
on glr01-gitlab-runner-vcf3hnijiq2b's Python /usr/bin/python. Please
read module documentation and install in the appropriate location. If
the required library is installed, but Ansible is using the wrong Python
interpreter, please consult the documentation on
ansible_python_interpreter"

The dependencies of the ansible gitlab_runner module can be found here:
https://docs.ansible.com/ansible/latest/modules/gitlab_runner_module.html#requirements


Using the package python3-gitlab does not solve the problem, because it has the 
wrong version.
The version in Ubuntu Focal is 2.0.1 while the required version is <1.12.1.

Trying to use version 2.0.1 results in:

  File 
"/tmp/ansible_gitlab_runner_payload_anefkglx/ansible_gitlab_runner_payload.zip/ansible/modules/source_control/gitlab_runner.py",
 line 392, in <module>
  File 
"/tmp/ansible_gitlab_runner_payload_anefkglx/ansible_gitlab_runner_payload.zip/ansible/modules/source_control/gitlab_runner.py",
 line 356, in main
TypeError: __init__() got an unexpected keyword argument 'email'

** Affects: ansible (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1865334

Title:
  Missing correct dependency to python3-gitlab

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1865334/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to