{"id":13852240,"url":"https://github.com/geerlingguy/ansible-role-drush","last_synced_at":"2025-04-06T21:16:36.586Z","repository":{"id":14589893,"uuid":"17306595","full_name":"geerlingguy/ansible-role-drush","owner":"geerlingguy","description":"Ansible Role - Drush for Drupal","archived":false,"fork":false,"pushed_at":"2025-01-31T03:25:00.000Z","size":96,"stargazers_count":33,"open_issues_count":1,"forks_count":54,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T19:11:09.334Z","etag":null,"topics":["ansible","cli","development","drupal","drush","lamp","lemp","php","role"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/geerlingguy/drush/","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/geerlingguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"geerlingguy","patreon":"geerlingguy"}},"created_at":"2014-03-01T03:11:46.000Z","updated_at":"2025-01-31T03:25:04.000Z","dependencies_parsed_at":"2024-01-18T11:02:10.040Z","dependency_job_id":"8ac40239-8fd0-4ffd-bbef-da863f8148ee","html_url":"https://github.com/geerlingguy/ansible-role-drush","commit_stats":{"total_commits":119,"total_committers":11,"mean_commits":"10.818181818181818","dds":"0.12605042016806722","last_synced_commit":"7058224101472a965ce7a54460ef39a97082877d"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-drush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-drush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-drush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-drush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/ansible-role-drush/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247550693,"owners_count":20956987,"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","cli","development","drupal","drush","lamp","lemp","php","role"],"created_at":"2024-08-04T22:01:10.683Z","updated_at":"2025-04-06T21:16:36.563Z","avatar_url":"https://github.com/geerlingguy.png","language":null,"funding_links":["https://github.com/sponsors/geerlingguy","https://patreon.com/geerlingguy"],"categories":["Others"],"sub_categories":[],"readme":"# Ansible Role: Drush\n\n[![CI](https://github.com/geerlingguy/ansible-role-drush/actions/workflows/ci.yml/badge.svg)](https://github.com/geerlingguy/ansible-role-drush/actions/workflows/ci.yml)\n\nInstalls [Drush](http://www.drush.org), a command line shell and scripting interface for Drupal, on any Linux or UNIX system.\n\n## Requirements\n\nPHP must be installed on the system prior to running this role (suggested role: `geerlingguy.php`).\n\nGlobal composer installation requires Composer to also be installed on the system (suggested role: `geerlingguy.composer`).\n\nSource installation additionally requires Git and Composer to also be installed on the system (suggested roles: `geerlingguy.git` and `geerlingguy.composer`).\n\n## Role Variables\n\nAvailable variables are listed below, along with default values (see `defaults/main.yml`):\n\n### Drush Launcher\n\n[Drush Launcher](https://github.com/drush-ops/drush-launcher) is a small wrapper around Drush for your global `$PATH`.\n\nIt is the recommended way to use `drush`, but there are some situations where you might wish to install and run Drush globally without using Drush Launcher. The following variables control Drush Launcher's installation:\n\n    drush_launcher_install: true\n\nSet to `no` if you don't want the launcher installed.\n\n    drush_launcher_version: \"0.10.1\"\n\nThe version of the Drush Launcher to install. This should exactly match an available [Drush Launcher release](https://github.com/drush-ops/drush-launcher/releases).\n\n    drush_launcher_phar_url: https://github.com/drush-ops/drush-launcher/releases/download/{{ drush_launcher_version }}/drush.phar\n\nThe URL from which the Drush Launcher phar file will be downloaded.\n\n    drush_launcher_path: /usr/local/bin/drush\n\nThe path where drush will be installed and available to your system. Should be in your user's `$PATH` so you can run commands simply with `drush` instead of the full path.\n\n### Drush global install via Composer\n\nSome people need to have the full power of `drush` available globally, and this role allows the global install of Drush via Composer. If using this option, make sure you have Composer installed!\n\n    drush_composer_global_install: false\n\nSet to `yes` (and set `drush_launcher_install` to `false`) if you want to install `drush` globally using Composer.\n\n    drush_composer_version: \"~11.0\"\n\nThe version constraint for the global Drush installation.\n\n    drush_composer_update: false\n\nWhether to run `composer update drush/drush` to ensure the version of Drush installed globally is the latest version.\n\n    drush_composer_global_bin_path: ~/.config/composer/vendor/bin\n    drush_composer_path: /usr/local/bin/drush\n\nThe global path where Composer installs global binaries, and the path in which you'd like the `drush` binary to be placed.\n\n\u003e NOTE: Composer 'global' installation is global _to the user under which Drush is installed_—e.g. if you install globally using the root user, `drush` will only work properly as `root` or when using `sudo`.\n\n### Variables used for source install (Git).\n\nYou can also install Drush from source if you need a bleeding-edge release, or if you need a specific version which can't be installed via Composer.\n\n    drush_install_from_source: false\n\nSet to `yes` (and set `drush_launcher_install` to `false`) if you want to install `drush` globally using the Drush source code.\n\n    drush_source_install_bin_path: /usr/local/bin/drush\n    drush_source_install_path: /usr/local/share/drush\n\nThe location of the entire drush installation (includes all the supporting files, as well as the `drush` executable file.\n\n    drush_source_install_version: \"11.x\"\n\nThe version of Drush to install (examples: `\"master\"` for the bleeding edge, `\"11.x\"`, `\"10.x\"`, `\"6.2.0\"`). This should be a string as it refers to a git branch, tag, or commit hash.\n\n    drush_keep_updated: false\n    drush_force_update: false\n\nWhether to keep Drush up-to-date with the latest revision of the branch specified by `drush_version`, and whether to force the update (e.g. overwrite local modifications to the drush repository).\n\n    drush_force_composer_install: false\n\nUse this if you get an error message when provisioning like `Unable to load autoload.php. Run composer install to fetch dependencies and write this file`. It will force a `composer install` inside the Drush directory.\n\n    drush_composer_cli_options: \"--prefer-source --no-interaction\"\n\nThese options are the safest for avoiding GitHub API rate limits when installing Drush, and can be very helpful when working on dependencies/installation, but builds can be sped up substantially by changing the first option to --prefer-dist.\n\n    drush_clone_depth: 1\n\nWhether to clone the entire repo (by default), or specify the number of previous commits for a smaller and faster clone.\n\n## Dependencies\n\nNone.\n\n## Example Playbook\n\n    - hosts: servers\n      roles:\n        - geerlingguy.drush\n\nAfter the playbook runs, the `drush` command will be accessible from normal system accounts.\n\n## License\n\nMIT / BSD\n\n## Author Information\n\nThis role was created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-drush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fansible-role-drush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-drush/lists"}