{"id":22941277,"url":"https://github.com/thejaxon/bash-scripts","last_synced_at":"2026-02-14T15:31:46.072Z","repository":{"id":130963036,"uuid":"256871966","full_name":"theJaxon/bash-scripts","owner":"theJaxon","description":"Collection of bash scripts that i've written","archived":false,"fork":false,"pushed_at":"2025-03-01T15:11:58.000Z","size":198,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T20:43:39.634Z","etag":null,"topics":["bash"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theJaxon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-04-18T23:15:34.000Z","updated_at":"2025-03-01T15:12:02.000Z","dependencies_parsed_at":"2024-12-14T13:38:37.861Z","dependency_job_id":"0f569cb9-3bfc-4ade-adb7-5f6355e0ea29","html_url":"https://github.com/theJaxon/bash-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theJaxon/bash-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theJaxon%2Fbash-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theJaxon%2Fbash-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theJaxon%2Fbash-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theJaxon%2Fbash-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theJaxon","download_url":"https://codeload.github.com/theJaxon/bash-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theJaxon%2Fbash-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29447981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T14:10:32.461Z","status":"ssl_error","status_checked_at":"2026-02-14T14:09:49.945Z","response_time":53,"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":["bash"],"created_at":"2024-12-14T13:38:30.771Z","updated_at":"2026-02-14T15:31:46.056Z","avatar_url":"https://github.com/theJaxon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BashScripts\n \n ![Bash Shell](https://img.shields.io/badge/-bash-4EAA25?style=for-the-badge\u0026logo=GNU%20Bash\u0026logoColor=white)\n \nMy collection of bash scripts.\n\n---\n\n* :file_folder: Ansible\n  * /ansible_family.sh\n  \nThe purpose of `ansible_family.sh` script is to generate the desired files to be used in a role.\n\nWhen porting roles to run on different platforms one relies on facts like:\n  - `ansible_facts['os_family']` which is generic so distros like (CentOS, Fedora and RHEL) all fall under **RedHat** Family.\n  - `ansible_facts['distribution']` which is more specific so the fact returns the name of the distribution (Ubuntu, Fedora and so on)\n  \n  The main.yml file in the tasks directory looks like the following (This tip is from Jeff Geerling book named ansible for DevOps):\n  \n```yml\n- name: Include variables based on OS Family \n  include_vars: \"{{ ansible_facts['os_family'] }}.yml\"\n\n- name: Include tasks based on OS Family \n  include_tasks: \"\u003crole_name\u003e-{{ ansible_facts['os_family'] }}.yml\"\n```\nSo whenever the playbook runs it gathers the facts and only the files matching those facts get included.\nThis script generates the desired files to be used in the include_vars and include_tasks section.\n\n#### Example:\n```bash\n./ansible_family.sh\nEnter role name: chrome\n# mkdir: created directory 'chrome_family'\n# mkdir: created directory 'vars'\n# mkdir: created directory 'tasks' \n\nls -R chrome_family\n\nchrome_family/:\ntasks  vars\n\nchrome_family/tasks:\nchrome-Archlinux.yml  chrome-Debian.yml  chrome-RedHat.yml  chrome-Windows.yml\n\nchrome_family/vars:\nArchlinux.yml  Debian.yml  RedHat.yml  Windows.yml\n```\n\n---\n\n### AWS Directory:\n- Contains user_data scripts","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejaxon%2Fbash-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthejaxon%2Fbash-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejaxon%2Fbash-scripts/lists"}