{"id":13501063,"url":"https://github.com/RoleModel/bash_command","last_synced_at":"2025-03-29T07:32:21.516Z","repository":{"id":34282748,"uuid":"38171329","full_name":"RoleModel/bash_command","owner":"RoleModel","description":"Ansible role to execute arbitrary bash commands via a role","archived":false,"fork":false,"pushed_at":"2015-07-01T20:37:08.000Z","size":112,"stargazers_count":9,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-24T01:14:16.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/RoleModel.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}},"created_at":"2015-06-27T18:50:23.000Z","updated_at":"2019-02-14T20:01:04.000Z","dependencies_parsed_at":"2022-09-14T02:10:30.781Z","dependency_job_id":null,"html_url":"https://github.com/RoleModel/bash_command","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoleModel%2Fbash_command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoleModel%2Fbash_command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoleModel%2Fbash_command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoleModel%2Fbash_command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoleModel","download_url":"https://codeload.github.com/RoleModel/bash_command/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246155998,"owners_count":20732355,"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":[],"created_at":"2024-07-31T22:01:24.101Z","updated_at":"2025-03-29T07:32:21.238Z","avatar_url":"https://github.com/RoleModel.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# bash_command\n\nWill execute the passed `command` in the passed `dir`. Useful for doing things like bundle install and rake db:migrate via a role.\n\n```yml\n- hosts: defaults\n  roles:\n    - { role: bash_command, dir: '/var/www/my_app', command: 'bundle install' }\n    - { role: bash_command, dir: '/var/www/my_app', command: 'bundle exec rake db:migrate' }\n```\n\nAdditionally you can specify the role to only run on a single node. Useful for things that would cause errors if run on multiple hosts.\n\n```yml\n- hosts: defaults\n  roles:\n    - { role: bash_command, dir: '/var/www/my_app', command: 'bundle install' }\n    - { role: bash_command, dir: '/var/www/my_app', command: 'bundle exec rake db:migrate', single_node: true }\n```\n\n## License\n\n* MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRoleModel%2Fbash_command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRoleModel%2Fbash_command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRoleModel%2Fbash_command/lists"}