Created
July 29, 2020 22:52
-
-
Save zeitounator/4074dac9003ff8605d8b9a076df4802c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run -it --rm centos:7 bash -c "yum install -y python3-pip && pip3 install ansible && ansible --version" | |
Loaded plugins: fastestmirror, ovl | |
Determining fastest mirrors | |
* base: mirrors.standaloneinstaller.com | |
* extras: mirrors.standaloneinstaller.com | |
* updates: mirrors.standaloneinstaller.com | |
base | 3.6 kB 00:00:00 | |
extras | 2.9 kB 00:00:00 | |
updates | 2.9 kB 00:00:00 | |
(1/4): base/7/x86_64/group_gz | 153 kB 00:00:00 | |
(2/4): extras/7/x86_64/primary_db | 205 kB 00:00:00 | |
(3/4): updates/7/x86_64/primary_db | 3.0 MB 00:00:00 | |
(4/4): base/7/x86_64/primary_db | 6.1 MB 00:00:00 | |
Resolving Dependencies | |
--> Running transaction check | |
---> Package python3-pip.noarch 0:9.0.3-7.el7_7 will be installed | |
--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-7.el7_7.noarch | |
--> Processing Dependency: python3-setuptools for package: python3-pip-9.0.3-7.el7_7.noarch | |
--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-7.el7_7.noarch | |
--> Running transaction check | |
---> Package python3.x86_64 0:3.6.8-13.el7 will be installed | |
--> Processing Dependency: python3-libs(x86-64) = 3.6.8-13.el7 for package: python3-3.6.8-13.el7.x86_64 | |
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-13.el7.x86_64 | |
---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed | |
--> Running transaction check | |
---> Package python3-libs.x86_64 0:3.6.8-13.el7 will be installed | |
--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-13.el7.x86_64 | |
--> Running transaction check | |
---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed | |
--> Finished Dependency Resolution | |
Dependencies Resolved | |
======================================================================================================================================================================================================================================== | |
Package Arch Version Repository Size | |
======================================================================================================================================================================================================================================== | |
Installing: | |
python3-pip noarch 9.0.3-7.el7_7 updates 1.8 M | |
Installing for dependencies: | |
libtirpc x86_64 0.2.4-0.16.el7 base 89 k | |
python3 x86_64 3.6.8-13.el7 base 69 k | |
python3-libs x86_64 3.6.8-13.el7 base 7.0 M | |
python3-setuptools noarch 39.2.0-10.el7 base 629 k | |
Transaction Summary | |
======================================================================================================================================================================================================================================== | |
Install 1 Package (+4 Dependent packages) | |
Total download size: 9.5 M | |
Installed size: 48 M | |
Downloading packages: | |
warning: /var/cache/yum/x86_64/7/base/packages/python3-3.6.8-13.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY | |
Public key for python3-3.6.8-13.el7.x86_64.rpm is not installed | |
(1/5): python3-3.6.8-13.el7.x86_64.rpm | 69 kB 00:00:00 | |
(2/5): libtirpc-0.2.4-0.16.el7.x86_64.rpm | 89 kB 00:00:00 | |
(3/5): python3-setuptools-39.2.0-10.el7.noarch.rpm | 629 kB 00:00:00 | |
Public key for python3-pip-9.0.3-7.el7_7.noarch.rpm is not installed | |
(4/5): python3-pip-9.0.3-7.el7_7.noarch.rpm | 1.8 MB 00:00:00 | |
(5/5): python3-libs-3.6.8-13.el7.x86_64.rpm | 7.0 MB 00:00:00 | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
Total 9.4 MB/s | 9.5 MB 00:00:01 | |
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 | |
Importing GPG key 0xF4A80EB5: | |
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>" | |
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 | |
Package : centos-release-7-8.2003.0.el7.centos.x86_64 (@CentOS) | |
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 | |
Running transaction check | |
Running transaction test | |
Transaction test succeeded | |
Running transaction | |
Installing : libtirpc-0.2.4-0.16.el7.x86_64 1/5 | |
Installing : python3-setuptools-39.2.0-10.el7.noarch 2/5 | |
Installing : python3-libs-3.6.8-13.el7.x86_64 3/5 | |
Installing : python3-3.6.8-13.el7.x86_64 4/5 | |
Installing : python3-pip-9.0.3-7.el7_7.noarch 5/5 | |
Verifying : python3-pip-9.0.3-7.el7_7.noarch 1/5 | |
Verifying : python3-3.6.8-13.el7.x86_64 2/5 | |
Verifying : libtirpc-0.2.4-0.16.el7.x86_64 3/5 | |
Verifying : python3-setuptools-39.2.0-10.el7.noarch 4/5 | |
Verifying : python3-libs-3.6.8-13.el7.x86_64 5/5 | |
Installed: | |
python3-pip.noarch 0:9.0.3-7.el7_7 | |
Dependency Installed: | |
libtirpc.x86_64 0:0.2.4-0.16.el7 python3.x86_64 0:3.6.8-13.el7 python3-libs.x86_64 0:3.6.8-13.el7 python3-setuptools.noarch 0:39.2.0-10.el7 | |
Complete! | |
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. | |
Collecting ansible | |
Downloading https://files.pythonhosted.org/packages/e8/b2/c10b82573bb494d9e0764b5c75eb7be1e649082435280f2220976d1a3b33/ansible-2.9.11.tar.gz (14.2MB) | |
100% |################################| 14.3MB 137kB/s | |
Collecting jinja2 (from ansible) | |
Downloading https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl (125kB) | |
100% |################################| 133kB 5.4MB/s | |
Collecting PyYAML (from ansible) | |
Downloading https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz (269kB) | |
100% |################################| 276kB 4.4MB/s | |
Collecting cryptography (from ansible) | |
Downloading https://files.pythonhosted.org/packages/26/d6/e8b087b9ae062d737c67c3bf76e30333bda9295ca17205062e8ed2c872de/cryptography-3.0-cp35-abi3-manylinux1_x86_64.whl (2.7MB) | |
100% |################################| 2.7MB 642kB/s | |
Collecting MarkupSafe>=0.23 (from jinja2->ansible) | |
Downloading https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl | |
Collecting six>=1.4.1 (from cryptography->ansible) | |
Downloading https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl | |
Collecting cffi!=1.11.3,>=1.8 (from cryptography->ansible) | |
Downloading https://files.pythonhosted.org/packages/eb/9c/c6b452e414ea289822f3cc44bdf4822066dc7b947f03eaa2a2b97dda5032/cffi-1.14.1-cp36-cp36m-manylinux1_x86_64.whl (400kB) | |
100% |################################| 409kB 3.6MB/s | |
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography->ansible) | |
Downloading https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl (112kB) | |
100% |################################| 112kB 5.6MB/s | |
Installing collected packages: MarkupSafe, jinja2, PyYAML, six, pycparser, cffi, cryptography, ansible | |
Running setup.py install for PyYAML ... done | |
Running setup.py install for ansible ... done | |
Successfully installed MarkupSafe-1.1.1 PyYAML-5.3.1 ansible-2.9.11 cffi-1.14.1 cryptography-3.0 jinja2-2.11.2 pycparser-2.20 six-1.15.0 | |
ansible 2.9.11 | |
config file = None | |
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible | |
executable location = /usr/local/bin/ansible | |
python version = 3.6.8 (default, Apr 2 2020, 13:34:55) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run -it --rm centos:8 bash -c "yum install -y python3-pip && pip3 install ansible && ansible --version" | |
CentOS-8 - AppStream 1.6 MB/s | 5.8 MB 00:03 | |
CentOS-8 - Base 1.3 MB/s | 2.2 MB 00:01 | |
CentOS-8 - Extras 15 kB/s | 7.0 kB 00:00 | |
Dependencies resolved. | |
======================================================================================================================================================================================================================================== | |
Package Arch Version Repository Size | |
======================================================================================================================================================================================================================================== | |
Installing: | |
python3-pip noarch 9.0.3-16.el8 AppStream 19 k | |
Upgrading: | |
platform-python-pip noarch 9.0.3-16.el8 BaseOS 1.8 M | |
platform-python-setuptools noarch 39.2.0-5.el8 BaseOS 632 k | |
Installing dependencies: | |
python36 x86_64 3.6.8-2.module_el8.1.0+245+c39af44f AppStream 19 k | |
python3-setuptools noarch 39.2.0-5.el8 BaseOS 162 k | |
Enabling module streams: | |
python36 3.6 | |
Transaction Summary | |
======================================================================================================================================================================================================================================== | |
Install 3 Packages | |
Upgrade 2 Packages | |
Total download size: 2.7 M | |
Downloading Packages: | |
(1/5): python3-pip-9.0.3-16.el8.noarch.rpm 165 kB/s | 19 kB 00:00 | |
(2/5): python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64.rpm 139 kB/s | 19 kB 00:00 | |
(3/5): python3-setuptools-39.2.0-5.el8.noarch.rpm 656 kB/s | 162 kB 00:00 | |
(4/5): platform-python-setuptools-39.2.0-5.el8.noarch.rpm 2.1 MB/s | 632 kB 00:00 | |
(5/5): platform-python-pip-9.0.3-16.el8.noarch.rpm 4.0 MB/s | 1.8 MB 00:00 | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
Total 4.0 MB/s | 2.7 MB 00:00 | |
warning: /var/cache/dnf/AppStream-02e86d1c976ab532/packages/python3-pip-9.0.3-16.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY | |
CentOS-8 - AppStream 1.6 MB/s | 1.6 kB 00:00 | |
Importing GPG key 0x8483C65D: | |
Userid : "CentOS (CentOS Official Signing Key) <[email protected]>" | |
Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D | |
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial | |
Key imported successfully | |
Running transaction check | |
Transaction check succeeded. | |
Running transaction test | |
Transaction test succeeded. | |
Running transaction | |
Preparing : 1/1 | |
Upgrading : platform-python-setuptools-39.2.0-5.el8.noarch 1/7 | |
Installing : python3-setuptools-39.2.0-5.el8.noarch 2/7 | |
Upgrading : platform-python-pip-9.0.3-16.el8.noarch 3/7 | |
Installing : python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 4/7 | |
Running scriptlet: python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 4/7 | |
Installing : python3-pip-9.0.3-16.el8.noarch 5/7 | |
Cleanup : platform-python-pip-9.0.3-13.el8.noarch 6/7 | |
Cleanup : platform-python-setuptools-39.2.0-4.el8.noarch 7/7 | |
Running scriptlet: platform-python-setuptools-39.2.0-4.el8.noarch 7/7 | |
Verifying : python3-pip-9.0.3-16.el8.noarch 1/7 | |
Verifying : python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 2/7 | |
Verifying : python3-setuptools-39.2.0-5.el8.noarch 3/7 | |
Verifying : platform-python-pip-9.0.3-16.el8.noarch 4/7 | |
Verifying : platform-python-pip-9.0.3-13.el8.noarch 5/7 | |
Verifying : platform-python-setuptools-39.2.0-5.el8.noarch 6/7 | |
Verifying : platform-python-setuptools-39.2.0-4.el8.noarch 7/7 | |
Upgraded: | |
platform-python-pip-9.0.3-16.el8.noarch platform-python-setuptools-39.2.0-5.el8.noarch | |
Installed: | |
python3-pip-9.0.3-16.el8.noarch python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 python3-setuptools-39.2.0-5.el8.noarch | |
Complete! | |
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. | |
Collecting ansible | |
Downloading https://files.pythonhosted.org/packages/e8/b2/c10b82573bb494d9e0764b5c75eb7be1e649082435280f2220976d1a3b33/ansible-2.9.11.tar.gz (14.2MB) | |
100% |████████████████████████████████| 14.3MB 138kB/s | |
Collecting jinja2 (from ansible) | |
Downloading https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl (125kB) | |
100% |████████████████████████████████| 133kB 5.5MB/s | |
Collecting PyYAML (from ansible) | |
Downloading https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz (269kB) | |
100% |████████████████████████████████| 276kB 3.7MB/s | |
Collecting cryptography (from ansible) | |
Downloading https://files.pythonhosted.org/packages/26/d6/e8b087b9ae062d737c67c3bf76e30333bda9295ca17205062e8ed2c872de/cryptography-3.0-cp35-abi3-manylinux1_x86_64.whl (2.7MB) | |
100% |████████████████████████████████| 2.7MB 694kB/s | |
Collecting MarkupSafe>=0.23 (from jinja2->ansible) | |
Downloading https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl | |
Collecting cffi!=1.11.3,>=1.8 (from cryptography->ansible) | |
Downloading https://files.pythonhosted.org/packages/eb/9c/c6b452e414ea289822f3cc44bdf4822066dc7b947f03eaa2a2b97dda5032/cffi-1.14.1-cp36-cp36m-manylinux1_x86_64.whl (400kB) | |
100% |████████████████████████████████| 409kB 3.6MB/s | |
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3.6/site-packages (from cryptography->ansible) | |
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography->ansible) | |
Downloading https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl (112kB) | |
100% |████████████████████████████████| 112kB 5.8MB/s | |
Installing collected packages: MarkupSafe, jinja2, PyYAML, pycparser, cffi, cryptography, ansible | |
Running setup.py install for PyYAML ... done | |
Running setup.py install for ansible ... done | |
Successfully installed MarkupSafe-1.1.1 PyYAML-5.3.1 ansible-2.9.11 cffi-1.14.1 cryptography-3.0 jinja2-2.11.2 pycparser-2.20 | |
ansible 2.9.11 | |
config file = None | |
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible | |
executable location = /usr/local/bin/ansible | |
python version = 3.6.8 (default, May 21 2019, 23:51:36) [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment