{"id":48026289,"url":"https://github.com/binbashar/ansible-role-common","last_synced_at":"2026-04-04T13:50:37.300Z","repository":{"id":98387149,"uuid":"231457312","full_name":"binbashar/ansible-role-common","owner":"binbashar","description":"Ansible Role - Common Linux OS tasks https://galaxy.ansible.com/binbash_inc/ansible_role_common","archived":false,"fork":false,"pushed_at":"2024-11-06T20:51:54.000Z","size":185,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-06T21:30:23.123Z","etag":null,"topics":["ansible","bb-le-mod-ansible-role","binbash-ansible","binbash-ansible-role"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binbashar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-02T20:49:07.000Z","updated_at":"2024-11-06T20:29:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2edcc5d-af6c-4032-a7e8-cb91e8ad982d","html_url":"https://github.com/binbashar/ansible-role-common","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/binbashar/ansible-role-common","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbashar%2Fansible-role-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbashar%2Fansible-role-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbashar%2Fansible-role-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbashar%2Fansible-role-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binbashar","download_url":"https://codeload.github.com/binbashar/ansible-role-common/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbashar%2Fansible-role-common/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: 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":["ansible","bb-le-mod-ansible-role","binbash-ansible","binbash-ansible-role"],"created_at":"2026-04-04T13:50:35.682Z","updated_at":"2026-04-04T13:50:37.278Z","avatar_url":"https://github.com/binbashar.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"./%40doc/figures/binbash-logo.png\" \n    alt=\"binbash\" width=\"250\"/\u003e\n\u003c/div\u003e\n\u003cdiv align=\"right\"\u003e\n  \u003cimg src=\"./%40doc/figures/binbash-leverage-ansible-logo.png\"\n  alt=\"leverage\" width=\"130\"/\u003e\n\u003c/div\u003e\n\n# Ansible Role: binbash_inc.ansible_role_common\n\n**Ansible Role to install your Server pre-requisites packages including python pip packages.**\n\n## Requirements\n\nNone.\n\n### Role Variables\n\nAvailable variables are listed below, along with default values (see `defaults/main.yml`):\n\nThis vars should be modified for your current use case. \n\nYou can set your specific server name here, eg: infra-vpn-server, infra-ci-server, etc.\n```\nserver_hostname: \"infra-server\"\n```\n\nThese `server_pgk_list` variables expect valid debian based packages and python pip packages (optionally w/ versions)\n```\nserver_pkg_list: [python3-pip,unzip,vim,zip]\nserver_pkg_list_pip: [awscli,boto,boto3,pyOpenSSL]\nserver_pkg_list_pip_ver: [[ansible,2.8.7],[docker,4.1.0]]\n```\n\nThe `server_pip3` vars here confirm python pip binary upgrade passing an specific version to it.\n```\nserver_pip3_upgrade: false\nserver_pip3_version: 19.3.1\n```\n\n## Dependencies\n\nNone.\n\n### Example Playbook\n\nWith server hostname and installation of OS packages + python pip packages\n```\n  roles:\n    - role: binbash_inc.ansible_role_common\n      server_hostname: \"infra-server\"\n      server_pkg_list: [build-essential, python3-pip, python3-setuptools, software-properties-common, unzip, vim, zip]\n      server_pkg_list_pip: [awscli, boto, boto3, pyOpenSSL]\n      server_pkg_list_pip_ver: [[ansible, 2.8.7],[docker, 4.1.0]]\n      server_pip3_upgrade: true\n      server_pip3_version: 19.3.1\n```\n\n---\n## Binbash Leverage | DevOps Automation Code Library Integration\n\nIn order to get the full automated potential of the\n[Binbash Leverage DevOps Automation Code Library](https://leverage.binbash.com.ar/how-it-works/code-library/code-library/)  \nyou should initialize all the necessary helper **Makefiles**.\n\n#### How?\nYou must execute the `make init-makefiles` command  at the root context\n\n```shell\n╭─delivery at delivery-ops\n╰─⠠⠵ make\nAvailable Commands:\n - init-makefiles     initialize makefiles\n\n```\n\n### Why?\nYou'll get all the necessary commands to automatically operate this module via a dockerized approach,\nexample shown below\n\n```shell\n╭─delivery at delivery-ops\n╰─⠠⠵ make\nAvailable Commands:\n - ansible-galaxy-import-role  ## Run playbook tests w/ molecule using the local code\n - init                ## Install required ansible roles\n - test-ansible-lint   ## Ansible lint\n - test-molecule-galaxy  ## Run playbook tests w/ molecule pulling role from ansible galaxy\n - test-molecule-local  ## Run playbook tests w/ molecule using the local code\n - circleci-validate-config  ## Validate A CircleCI Config (https\n - changelog-init      ## git-chglog (https\n - changelog-major     ## git-chglog generation for major release\n - changelog-minor     ## git-chglog generation for minor release\n - changelog-patch     ## git-chglog generation for path release\n - release-major       ## releasing major (eg\n - release-major-with-changelog-circleci  ## make changelog-major \u0026\u0026 git add \u0026\u0026 git commit \u0026\u0026 make release-major\n - release-major-with-changelog  ## make changelog-major \u0026\u0026 git add \u0026\u0026 git commit \u0026\u0026 make release-major\n - release-minor       ## releasing minor (eg\n - release-minor-with-changelog-circleci  ## make changelog-minor \u0026\u0026 git add \u0026\u0026 git commit \u0026\u0026 make release-minor\n - release-minor-with-changelog  ## make changelog-minor \u0026\u0026 git add \u0026\u0026 git commit \u0026\u0026 make release-minor\n - release-patch       ## releasing patch (eg\n - release-patch-with-changelog-circleci  ## make changelog-patch \u0026\u0026 git add \u0026\u0026 git commit \u0026\u0026 make release-patch\n - release-patch-with-changelog  ## make changelog-patch \u0026\u0026 git add \u0026\u0026 git commit \u0026\u0026 make release-patch\n - init-makefiles      ## initialize makefiles\n```\n\n```shell\n╭─delivery at delivery-ops\n╰─⠠⠵ make test-molecule-local \n...\n-------------------------------\nTESTING MODULE ON: ubuntu1804\n-------------------------------\nUsing default tag: latest\nlatest: Pulling from geerlingguy/docker-ubuntu1804-ansible\nDigest: sha256:1b47cbb66e819170fd3afee98db55176bc13cd12fabdbcf0183aff2582dc0254\nStatus: Image is up to date for geerlingguy/docker-ubuntu1804-ansible:latest\ndocker.io/geerlingguy/docker-ubuntu1804-ansible:latest\n## Starting testing stages ##\n--\u003e Test matrix\n    \n└── default\n    ├── dependency\n    ├── lint\n    ├── cleanup\n    ├── destroy\n    ├── syntax\n    ├── create\n    ├── prepare\n    ├── converge\n    ├── idempotence\n    ├── side_effect\n    ├── verify\n    ├── cleanup\n    └── destroy\n    \n--\u003e Scenario: 'default'\n...\n    \n    PLAY [Destroy] *****************************************************************\n    \n    TASK [Destroy molecule instance(s)] ********************************************\n    changed: [localhost] =\u003e (item=instance)\n    \n    TASK [Wait for instance(s) deletion to complete] *******************************\n    FAILED - RETRYING: Wait for instance(s) deletion to complete (300 retries left).\n    changed: [localhost] =\u003e (item=None)\n    changed: [localhost]\n    \n    TASK [Delete docker network(s)] ************************************************\n    \n    PLAY RECAP *********************************************************************\n    localhost                  : ok=2    changed=2    unreachable=0    failed=0    skipped=1    rescued=0    ignored=0\n    \n--\u003e Pruning extra files from scenario ephemeral directory\n-------------------------------\nDONE\n\n-------------------------------\nTESTING MODULE ON: ubuntu1604\n-------------------------------\n```\n\n## License\n\nMIT / BSD\n\n# Release Management\n### CircleCi PR auto-release job\n\n\u003cdiv align=\"left\"\u003e\n  \u003cimg src=\"./%40doc/figures/circleci-logo.png\" alt=\"circleci\" width=\"130\"/\u003e\n\u003c/div\u003e\n\n- [**pipeline-job**](https://app.circleci.com/pipelines/github/binbashar/ansible-role-common) (**NOTE:** Will only run after merged PR)\n- [**releases**](https://github.com/binbashar/ansible-role-common/releases) \n- [**changelog**](https://github.com/binbashar/ansible-role-common/blob/master/CHANGELOG.md) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinbashar%2Fansible-role-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinbashar%2Fansible-role-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinbashar%2Fansible-role-common/lists"}