# Missing variable in installation process for own galaxy server

**URL:** <https://forum.ansible.com/t/missing-variable-in-installation-process-for-own-galaxy-server/1970>\
**Category:** Get Help\
**Tags:** ubuntu, galaxy-ng\
**Created:** [October 26, 2023, 8:17am UTC](https://forum.ansible.com/t/missing-variable-in-installation-process-for-own-galaxy-server/1970 "2023-10-26T08:17:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sundrys1](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sundrys1/32/1331_2.png) [@sundrys1](https://forum.ansible.com/u/sundrys1)\
**Post date:** [October 26, 2023, 8:17am UTC](https://forum.ansible.com/t/missing-variable-in-installation-process-for-own-galaxy-server/1970/1 "2023-10-26T08:17:12Z")

</div>

Hello all,  
Can you please help me.  
I tried install my own ansible galaxy server ,  
Try to follow official way

> **[Installation - Galaxy NG](https://ansible.readthedocs.io/projects/galaxy-ng/en/latest/usage_guide/installation/)**
>
> Galaxy NG

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

```auto
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

```auto
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._

```

thank you for your help
