{"id":15008816,"url":"https://github.com/ucl-mirsg/ansible-role-install-python","last_synced_at":"2025-10-03T16:31:43.938Z","repository":{"id":65383496,"uuid":"577723713","full_name":"UCL-MIRSG/ansible-role-install-python","owner":"UCL-MIRSG","description":"An Ansible role to Install Python, pip, and setuptools on a managed node","archived":true,"fork":false,"pushed_at":"2024-01-01T01:39:32.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-29T16:21:11.678Z","etag":null,"topics":["ansible-role","python2","python3"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UCL-MIRSG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-13T11:34:28.000Z","updated_at":"2024-01-15T14:22:40.000Z","dependencies_parsed_at":"2023-11-17T11:47:09.226Z","dependency_job_id":null,"html_url":"https://github.com/UCL-MIRSG/ansible-role-install-python","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL-MIRSG%2Fansible-role-install-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL-MIRSG%2Fansible-role-install-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL-MIRSG%2Fansible-role-install-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL-MIRSG%2Fansible-role-install-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UCL-MIRSG","download_url":"https://codeload.github.com/UCL-MIRSG/ansible-role-install-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235156016,"owners_count":18944828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible-role","python2","python3"],"created_at":"2024-09-24T19:20:41.890Z","updated_at":"2025-10-03T16:31:43.554Z","avatar_url":"https://github.com/UCL-MIRSG.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: mirsg.install_python\n\nThis role installs Python, pip, and setuptools on Debian and RedHat operating systems. It will also update pip to the latest version or a\nuser-specified version, and then install user-specified Python packages using pip.\n\n## Requirements\n\nIf you would like to run Ansible Molecule to test this role, the requirements are in [`requirements.txt`](https://github.com/UCL-MIRSG/ansible-role-install-python/blob/main/requirements.txt).\n\n## Role Variables\n\n`install_python` is a dictionary that contains the following varialbes:\n\n`version`: the version of Python to install. This defaults to `\"3\"`.\n\n`pip_version`: the version of pip to update to. This defaults to `\"21.3.1\"`.\n\n`pip_executable`: path to the pip executalbe to use for installing packages. This defaults to `\"pip3\"`\n\n`system_packages`: list of system packages to be installed along with Python. This defaults to:\n\n```yaml\n- python3\n- python3-pip\n- python3-setuptools\n```\n\nThe packages listed in `install_python.system_packages` will be installed by the OS package manager, NOT by pip.\n\n`pip_packages`: list of Python packages to be installed by pip. This defaults to `[]`.\n\n## Dependencies\n\nThere are no Ansible-Galaxy dependencies for this role.\n\n## Example Playbook\n\nThis role will install Python on a managed host. To used this role, add it to the list of roles in a play:\n\n```yaml\n- name: Install Python\n  hosts: all\n  roles:\n    - mirsg.install_python\n```\n\n## License\n\n[BSD 3-Clause License](https://github.com/UCL-MIRSG/ansible-role-install-python/blob/main/LICENSE).\n\n## Author Information\n\nThis role was created by the [Medical Imaging Research Software Group](https://www.ucl.ac.uk/advanced-research-computing/expertise/research-software-development/medical-imaging-research-software-group) at [UCL](https://www.ucl.ac.uk/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucl-mirsg%2Fansible-role-install-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fucl-mirsg%2Fansible-role-install-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucl-mirsg%2Fansible-role-install-python/lists"}