{"id":19222955,"url":"https://github.com/pyratlabs/ansible-role-awscli","last_synced_at":"2026-05-07T02:31:18.120Z","repository":{"id":69224739,"uuid":"229443306","full_name":"PyratLabs/ansible-role-awscli","owner":"PyratLabs","description":"Ansible role for installing an AWS CLI (awscli) into a Python3 VirtualEnv.","archived":false,"fork":false,"pushed_at":"2020-07-09T07:38:16.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T09:44:22.236Z","etag":null,"topics":["amazon","amazon-web-services","ansible","ansible-role","automation","aws","aws-cli","cloud","infrastructure","infrastructure-as-code"],"latest_commit_sha":null,"homepage":"","language":"Python","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/PyratLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-21T15:02:44.000Z","updated_at":"2020-07-09T07:38:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"48546c71-f657-41ab-b7cc-02b50301485d","html_url":"https://github.com/PyratLabs/ansible-role-awscli","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/PyratLabs/ansible-role-awscli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyratLabs%2Fansible-role-awscli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyratLabs%2Fansible-role-awscli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyratLabs%2Fansible-role-awscli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyratLabs%2Fansible-role-awscli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PyratLabs","download_url":"https://codeload.github.com/PyratLabs/ansible-role-awscli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyratLabs%2Fansible-role-awscli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32720109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["amazon","amazon-web-services","ansible","ansible-role","automation","aws","aws-cli","cloud","infrastructure","infrastructure-as-code"],"created_at":"2024-11-09T15:06:01.638Z","updated_at":"2026-05-07T02:31:18.103Z","avatar_url":"https://github.com/PyratLabs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: awscli\n\nAnsible role for installing an AWS CLI (`awscli`) into a Python3 VirtualEnv.\n\n[![Build Status](https://www.travis-ci.org/PyratLabs/ansible-role-awscli.svg?branch=master)](https://www.travis-ci.org/PyratLabs/ansible-role-awscli)\n\n## Requirements\n\nThis role has been tested on Ansible 2.7.0+ against the following Linux Distributions:\n\n  - Amazon Linux 2\n  - CentOS 8\n  - CentOS 7\n  - Debian 10\n  - Fedora 29\n  - Fedora 30\n  - Fedora 31\n  - Ubuntu 18.04 LTS\n\n## Disclaimer\n\nIf you have any problems please create a GitHub issue, I maintain this role in\nmy spare time so I cannot promise a speedy fix delivery.\n\n## Role Variables\n\n\n| Variable                         | Description                                                                   | Default Value        |\n|----------------------------------|-------------------------------------------------------------------------------|----------------------|\n| `awscli_version`                 | Use a specific version of awscli, eg. `1.16.309`. Specify `false` for latest. | `false`              |\n| `awscli_install_dir`             | Installation directory to put awscli virtual environments.                    | `$HOME/.virtualenvs` |\n| `awscli_venv_name`               | Name for the currently active awscli Virtualenv.                              | awscli               |\n| `awscli_venv_suffix`             | Add a custom suffix to virtualenv.                                            | `awscli_version`     |\n| `awscli_venv_site_packages`      | Allow venv to inherit packages from global site-packages.                     | `false`              |\n| `awscli_install_venv_helper`     | Install a venv helper to launch venv executables from a \"bin\" directory.      | `true`               |\n| `awscli_bin_dir`                 | \"bin\" directory to install venv-helpers to.                                   | `$HOME/bin`          |\n| `awscli_install_os_dependencies` | Allow role to install OS dependencies.                                        | `false`              |\n| `awscli_python3_path`            | Specify a path to a specific python version to use in virtualenv.             | _NULL_               |\n\n## Dependencies\n\nNo dependencies on other roles.\n\n## Example Playbook\n\nExample playbook for installing to single user:\n\n```yaml\n- hosts: awscli_hosts\n  roles:\n     - { role: xanmanning.awscli, awscli_version: 1.16.309 }\n```\n\nExample playbook for installing the latest awscli version globally:\n\n```yaml\n---\n- hosts: awscli_hosts\n  become: true\n  vars:\n    awscli_install_os_dependencies: true\n    awscli_install_dir: /opt/awscli/bin\n    awscli_bin_dir: /usr/bin\n    awscli_venv_name: current\n  roles:\n    - role: xanmanning.awscli\n```\n\n### Activating the awscli venv\n\nYou need to activate the python3 virtual environment to be able to access `aws`.\nThis is done as per the below:\n\n```bash\nsource {{ awscli_install_dir }}/{{ awscli_venv_name }}/bin/activate\n```\n\nIn the above example global installation playbook, this would look like the\nfollowing:\n\n```bash\nsource /opt/awscli/bin/current/bin/activate\n```\n\n## License\n\n[BSD 3-clause](LICENSE.txt)\n\n## Author Information\n\n[Xan Manning](https://xanmanning.co.uk/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyratlabs%2Fansible-role-awscli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyratlabs%2Fansible-role-awscli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyratlabs%2Fansible-role-awscli/lists"}