Skip to content

Clean install doesn't work on RH7 #40

Open
@oCHRISo

Description

@oCHRISo

Describe the bug

When running the install on Red Hat 7 machine it fails on prerequisites/setup-certs.yml:17

To reproduce

Steps to reproduce the behavior:

  1. Deploy the Ansible NGINX Management Suite role using playbook.yml
    Used example playbook here https://github.com/nginxinc/ansible-role-nginx-management-suite/blob/main/molecule/default/converge.yml

  2. View ansible output

  3. See error

TASK [ansible-role-nginx-management-suite : (Debian/Red Hat) Install cryptography package] ***********************************************************************************************************************************
task path: /Users/ch.adams/git/github/ansible-inventory/roles/ansible-role-nginx-management-suite/tasks/prerequisites/setup-certs.yml:17
fatal: [x.x.x.x]: FAILED! => {"changed": false, "cmd": ["/usr/bin/python", "-m", "pip.__main__", "install", "cryptography"], "msg": "stdout: Collecting cryptography\n  Using cached https://files.pythonhosted.org/packages/19/8c/47f061de65d1571210dc46436c14a0a4c260fd0f3eaf61ce9b9d445ce12f/cryptography-41.0.1.tar.gz\n    Complete output from command python setup.py egg_info:\n    Traceback (most recent call last):\n      File \"<string>\", line 1, in <module>\n      File \"/tmp/pip-build-U4n8D6/cryptography/setup.py\", line 87\n        print(f\"    Python: {'.'.join(str(v) for v in sys.version_info[:3])}\")\n                                                                            ^\n    SyntaxError: invalid syntax\n    \n    ----------------------------------------\n\n:stderr: Command \"python setup.py egg_info\" failed with error code 1 in /tmp/pip-build-U4n8D6/cryptography/\nYou are using pip version 8.1.2, however version 23.1.2 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.\n"}

Expected behavior

A clear and concise description of what you expected to happen.
NMS to install successfully

Your environment

  • Version of the Ansible NGINX Management Suite role or specific commit
    0.2.0

  • Version of Ansible
    2.15.0

  • Version of Jinja2 (if you are using any templating capability)

  • Target deployment platform
    AWS EC2 RH 7 instance

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions