{"id":23100319,"url":"https://github.com/berenddeboer/ansible-drush-module","last_synced_at":"2026-04-13T02:04:23.000Z","repository":{"id":145493909,"uuid":"111739129","full_name":"berenddeboer/ansible-drush-module","owner":"berenddeboer","description":"Allows ansible playbooks to interface with a Drupal site through drush","archived":false,"fork":false,"pushed_at":"2017-12-11T19:58:44.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T08:45:46.844Z","etag":null,"topics":["ansible","ansible-modules","drupal","drush"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/berenddeboer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-22T22:37:21.000Z","updated_at":"2021-01-12T05:42:23.000Z","dependencies_parsed_at":"2023-04-30T05:46:22.203Z","dependency_job_id":null,"html_url":"https://github.com/berenddeboer/ansible-drush-module","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/berenddeboer%2Fansible-drush-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berenddeboer%2Fansible-drush-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berenddeboer%2Fansible-drush-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berenddeboer%2Fansible-drush-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/berenddeboer","download_url":"https://codeload.github.com/berenddeboer/ansible-drush-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247078786,"owners_count":20879950,"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","ansible-modules","drupal","drush"],"created_at":"2024-12-16T23:32:13.391Z","updated_at":"2026-04-13T02:04:22.963Z","avatar_url":"https://github.com/berenddeboer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-drush-module\nAllows ansible playbooks to interface with a Drupal site through drush.\n\nWork in progress, but getting web status works, as well as\nvariable-get and variable-set.\n\nFor variable-set we make an effort to determine if the setting is\nactually changed (or going to be changed in check mode).\n\n\n# Examples\n\n```\n# Check if Drupal website is at the latest version\n- name: Get status\n  drush: path=/var/www/www.example.com command=core-status\n  register: drush\n\n- debug: msg=\"Latest version\"\n  when: \"drush['drush']['drupal-version'] == '7.56'\"\n\n# Get a variable\n- name: get variable\n  drush: path=/var/www/www.example.com command=variable-get name=cron_safe_threshold\n  register: drush\n\n- debug: msg='Cron is disabled'\n  when: \"drush['cron_safe_threshold'] == 0\"\n\n# Set a variable\n- name: set variable\n  drush: path=/var/www/www.example.com command=variable-set name=page_cache_maximum_age value=3600\n  register: drush\n\n# Modules\n- name: disable a module\n  drush: path=/var/www/www.example.com command=pm-disable name=devel\n\n- name: enable a module\n  drush: path=/var/www/www.example.com command=pm-enable name=memcache\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberenddeboer%2Fansible-drush-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberenddeboer%2Fansible-drush-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberenddeboer%2Fansible-drush-module/lists"}