Ansible im alten RedHat 7 installieren

Ansible im alten RedHat 7 installieren

Ich versuche, Ansible auf einem alten RedHat zu installieren. Ich habe alle Pakete bereits mit yum aktualisiert.

> sudo yum install ansible
Loaded plugins: product-id, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package ansible.noarch 0:2.8.4-1.el7 will be installed
--> Processing Dependency: PyYAML for package: ansible-2.8.4-1.el7.noarch
--> Processing Dependency: python-httplib2 for package: ansible-2.8.4-1.el7.noarch
--> Processing Dependency: python-jinja2 for package: ansible-2.8.4-1.el7.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.8.4-1.el7.noarch
--> Processing Dependency: python2-cryptography for package: ansible-2.8.4-1.el7.noarch
--> Processing Dependency: python2-jmespath for package: ansible-2.8.4-1.el7.noarch
--> Running transaction check
---> Package PyYAML.x86_64 0:3.10-11.el7 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-11.el7.x86_64
---> Package ansible.noarch 0:2.8.4-1.el7 will be installed
--> Processing Dependency: python2-cryptography for package: ansible-2.8.4-1.el7.noarch
---> Package python-httplib2.noarch 0:0.9.2-0.2.el7 will be installed
---> Package python-jinja2.noarch 0:2.8-7.rhel7 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.8-7.rhel7.noarch
--> Processing Dependency: python-markupsafe for package: python-jinja2-2.8-7.rhel7.noarch
---> Package python-paramiko.noarch 0:2.1.1-0.10.el7 will be installed
--> Processing Dependency: python2-pyasn1 for package: python-paramiko-2.1.1-0.10.el7.noarch
---> Package python2-jmespath.noarch 0:0.9.0-1.el7 will be installed
--> Running transaction check
---> Package ansible.noarch 0:2.8.4-1.el7 will be installed
--> Processing Dependency: python2-cryptography for package: ansible-2.8.4-1.el7.noarch
---> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed
---> Package python-babel.noarch 0:0.9.6-8.el7 will be installed
---> Package python-markupsafe.x86_64 0:0.11-10.el7 will be installed
---> Package python-paramiko.noarch 0:2.1.1-0.10.el7 will be installed
--> Processing Dependency: python2-pyasn1 for package: python-paramiko-2.1.1-0.10.el7.noarch
--> Finished Dependency Resolution
Error: Package: ansible-2.8.4-1.el7.noarch (epel)
           Requires: python2-cryptography
Error: Package: python-paramiko-2.1.1-0.10.el7.noarch (epel)
           Requires: python2-pyasn1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Um zu prüfen, welche Python-Version installiert ist, haben wir:

python --version
Python 2.7.5

Wie kann ich vorgehen, um dieses Problem zu beheben?

Antwort1

Versuchen Sie zunächst, im Yum-Repo zu suchen

yum search python | egrep  "pyasn|cryptography"

Auf diese Weise suchen Sie im Repo nach den Paketen, die Sie benötigen.

Wenn sie nicht aufgeführt sind, können Sie versuchen, die epelRepos und das centos-extraRepo hinzuzufügen.

verwandte Informationen