-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
Unspecified
-
None
-
False
-
-
False
-
Informational
Description
Hello all,
Can you please help me.
I tried install my own ansible galaxy server ,
Try to follow official way
https://ansible.readthedocs.io/projects/galaxy-ng/en/latest/usage_guide/installation/
First guestion was which linux dist. I have to use ?
I have use ubuntu 22 but I have problem with python-dev which does not exist.
Then I have found out I need to use ubuntu 20
all step 1 to 5 it was success deploy with any problem.
then last step
The following provides an example of how to start playbook execution. It assumes an inventory file called hosts exists in the current directory and contains the target host(s) where Galaxy server is to be installed:
ansible-playbook enduser-install.yml -i hosts --extra-vars "@enduser-install-vars.yml"
{{}}
I have create inventory called hosts
[local] localhost ansible_connection=local
{{}}
then I run it
{{}}
TASK [pulp_common : Install the Pulp undeclared package dependencies via apt] **********************************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'pulp_pkg_name_prefix' is undefined\n\nThe error appears to be in '/home/sundrys1/.ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/tasks/install_packages.yml': line 96, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: \"Install the Pulp undeclared package dependencies via {{ ansible_facts.pkg_mgr }}\" # noqa name[template]\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
I have tried second instaling process
ansible-playbook enduser-install.yml -i hosts --extra-vars "@upstream-rpm-install-vars.yml"
and I have this errors
TASK [pulp_common : Run pip-compile to check pulpcore/plugin compatibility] ************************************************************************************************************************************
[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ failed_condition | default("compatibility.rc != 0") }}
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/local/lib/pulp/bin/pip-compile"], "delta": "0:01:39.219897", "end": "2023-10-19 21:46:54.124927", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2023-10-19 21:45:14.905030", "stderr": " ERROR: Cannot install -r requirements.in (line 1) because these package versions have conflicting dependencies.\nDiscarding click==8.1.7 (from -r requirements.txt (line 2)) to proceed the resolution\n ERROR: Cannot install -r requirements.in (line 1), -r requirements.in (line 2) and pulpcore~=3.22.0 because these package versions have conflicting dependencies.\nTraceback (most recent call last):\n File \"/usr/local/lib/pulp/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py\", line 95, in resolve\n result = self._result = resolver.resolve(\n File \"/usr/local/lib/pulp/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py\", line 546, in resolve\n state = resolution.resolve(requirements, max_rounds=max_rounds)\n File \"/usr/local/lib/pulp/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py\", line 439, in resolve\n raise ResolutionImpossible(self.state.backtrack_causes)\npip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('pulpcore~=3.22.0'), parent=None), RequirementInformation(requirement=SpecifierRequirement('pulpcore<3.40,>=3.25.0'), parent=LinkCandidate('https://files.pythonhosted.org/packages/ab/a3/fa43efa5123e55fe7eefeff503d2a0b3a25cb355c9859c3220016d30e5cf/pulp_ansible-0.20.1-py3-none-any.whl (from https://pypi.org/simple/pulp-ansible/)')), RequirementInformation(requirement=SpecifierRequirement('pulpcore~=3.22.0'), parent=None), RequirementInformation(requirement=SpecifierRequirement('pulpcore<3.40,>=3.25.0'), parent=LinkCandidate('https://files.pythonhosted.org/packages/f7/bd/22f00aa093d37feb268e48f7f87367837037319b73910a0ff7b15fd02460/pulp_ansible-0.20.0-py3-none-any.whl (from https://pypi.org/simple/pulp-ansible/)')), RequirementInformation(requirement=SpecifierRequirement('pulpcore~=3.22.0'), parent=None), RequirementInformation(requirement=SpecifierRequirement('pulpcore<3.40,>=3.25.0'), parent=LinkCandidate('https://files.pythonhosted.org/packages/94/38/1aec6243ca6d11f26b340bd9a3ba2c84f102290b6d5ccb47a368573ade6c/pulp_ansible-0.19.0-py3-none-any.whl (from https://pypi.org/simple/pulp-ansible/)')), RequirementInformation(requirement=SpecifierRequirement('pulpcore~=3.22.0'), parent=None), RequirementInformation(requirement=SpecifierRequirement('pulpcore<3.40,>=3.25.0'), parent=LinkCandidate('https://files.pythonhosted.org/packages/83/10/23e4d4ef7447b390bcb5ec3c89af48ada3fac51ec4c4349ea4bf5aefb915/pulp_ansible-0.18.2-py3-none-any.whl (from https://pypi.org/simple/pulp-ansible/)')), RequirementInformation(requirement=SpecifierRequirement('pulpcore~=3.22.0'), parent=None), RequirementInformation(requirement=SpecifierRequirement('pulpcore<3.40,>=3.25.0'), parent=LinkCandidate('https://files.pythonhosted.org/packages/f8/91/405119b6316362d26cdd2b95c0bc7392f5277c6576a983cef96da8ee842a/pulp_ansible-0.18.1-py3-none-any.whl (from https://pypi.org/simple/pulp-ansible/)')), RequirementInformation(requirement=SpecifierRequirement('pulpcore~=3.22.0'), parent=None), RequirementInformation(requirement=SpecifierRequirement('pulpcore<3.40,>=3.25.0'), parent=LinkCandidate('https://files.pythonhosted.org/packages/11/56/ff62e49e5f22d1659d246452953ca3cddf820cdd29150c9971bfe9a7be85/pulp_ansible-0.18.0-py3-none-any.whl (from https://pypi.org/simple/pulp-ansible/)')), RequirementInformation(requirement=SpecifierRequirement('pulpcore~=3.22.0'), parent=None), Requirem
{{}}
thank you for your help
Radek Magyar
radek.magyar@dhl.com