Skip to content

Instantly share code, notes, and snippets.

@zeitounator
Created October 16, 2023 15:31
Show Gist options
  • Save zeitounator/fb86f7fb3762052992a451e8e6eee646 to your computer and use it in GitHub Desktop.
Save zeitounator/fb86f7fb3762052992a451e8e6eee646 to your computer and use it in GitHub Desktop.
17:28 $ docker run -it --rm python:latest bash
root@bae40b8ce004:/# python --version
Python 3.12.0
root@bae40b8ce004:/# pip install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.12/site-packages (23.2.1)
Collecting pip
Obtaining dependency information for pip from https://files.pythonhosted.org/packages/e0/63/b428aaca15fcd98c39b07ca7149e24bc14205ad0f1c80ba2b01835aedde1/pip-23.3-py3-none-any.whl.metadata
Downloading pip-23.3-py3-none-any.whl.metadata (3.5 kB)
Downloading pip-23.3-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 7.2 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.2.1
Uninstalling pip-23.2.1:
Successfully uninstalled pip-23.2.1
Successfully installed pip-23.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@bae40b8ce004:/# pip install ansible
Collecting ansible
Downloading ansible-8.5.0-py3-none-any.whl.metadata (7.9 kB)
Collecting ansible-core~=2.15.5 (from ansible)
Downloading ansible_core-2.15.5-py3-none-any.whl.metadata (7.0 kB)
Collecting jinja2>=3.0.0 (from ansible-core~=2.15.5->ansible)
Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 1.6 MB/s eta 0:00:00
Collecting PyYAML>=5.1 (from ansible-core~=2.15.5->ansible)
Downloading PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Collecting cryptography (from ansible-core~=2.15.5->ansible)
Downloading cryptography-41.0.4-cp37-abi3-manylinux_2_28_x86_64.whl.metadata (5.2 kB)
Collecting packaging (from ansible-core~=2.15.5->ansible)
Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB)
Collecting resolvelib<1.1.0,>=0.5.3 (from ansible-core~=2.15.5->ansible)
Downloading resolvelib-1.0.1-py2.py3-none-any.whl (17 kB)
Collecting MarkupSafe>=2.0 (from jinja2>=3.0.0->ansible-core~=2.15.5->ansible)
Downloading MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.9 kB)
Collecting cffi>=1.12 (from cryptography->ansible-core~=2.15.5->ansible)
Downloading cffi-1.16.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting pycparser (from cffi>=1.12->cryptography->ansible-core~=2.15.5->ansible)
Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 721.4 kB/s eta 0:00:00
Downloading ansible-8.5.0-py3-none-any.whl (47.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.5/47.5 MB 8.0 MB/s eta 0:00:00
Downloading ansible_core-2.15.5-py3-none-any.whl (2.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB 4.7 MB/s eta 0:00:00
Downloading PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (724 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 725.0/725.0 kB 11.1 MB/s eta 0:00:00
Downloading cryptography-41.0.4-cp37-abi3-manylinux_2_28_x86_64.whl (4.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.4/4.4 MB 9.8 MB/s eta 0:00:00
Downloading packaging-23.2-py3-none-any.whl (53 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 kB 2.3 MB/s eta 0:00:00
Downloading cffi-1.16.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (477 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 477.6/477.6 kB 4.7 MB/s eta 0:00:00
Downloading MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28 kB)
Installing collected packages: resolvelib, PyYAML, pycparser, packaging, MarkupSafe, jinja2, cffi, cryptography, ansible-core, ansible
Successfully installed MarkupSafe-2.1.3 PyYAML-6.0.1 ansible-8.5.0 ansible-core-2.15.5 cffi-1.16.0 cryptography-41.0.4 jinja2-3.1.2 packaging-23.2 pycparser-2.21 resolvelib-1.0.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@bae40b8ce004:/# ansible --version
ansible [core 2.15.5]
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.12/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.12.0 (main, Oct 12 2023, 09:45:59) [GCC 12.2.0] (/usr/local/bin/python)
jinja version = 3.1.2
libyaml = True
root@bae40b8ce004:/# ansible-galaxy collection install git+https://github.com/devroles/ansible_collection_system.git
Cloning into '/root/.ansible/tmp/ansible-local-25pig9x5y8/tmpmcbv5oq4/ansible_collection_system7pzbap5s'...
remote: Enumerating objects: 513, done.
remote: Counting objects: 100% (513/513), done.
remote: Compressing objects: 100% (338/338), done.
remote: Total 513 (delta 43), reused 440 (delta 34), pack-reused 0
Receiving objects: 100% (513/513), 117.53 KiB | 687.00 KiB/s, done.
Resolving deltas: 100% (43/43), done.
Your branch is up to date with 'origin/main'.
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Installing 'devroles.system:3.0.0' to '/root/.ansible/collections/ansible_collections/devroles/system'
Downloading https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/community-general-4.8.0.tar.gz to /root/.ansible/tmp/ansible-local-25pig9x5y8/tmpmcbv5oq4/community-general-4.8.0-35q4n7jy
Created collection for devroles.system:3.0.0 at /root/.ansible/collections/ansible_collections/devroles/system
devroles.system:3.0.0 was installed successfully
'containers.podman:1.10.3' is already installed, skipping.
'community.crypto:2.15.1' is already installed, skipping.
'community.mysql:3.7.2' is already installed, skipping.
'ansible.posix:1.5.4' is already installed, skipping.
Installing 'community.general:4.8.0' to '/root/.ansible/collections/ansible_collections/community/general'
community.general:4.8.0 was installed successfully
root@bae40b8ce004:/# exit
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment