You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
ansible-role-nginx/roles/ansible-role-drupal-console/tasks/main.yml

22 lines
631 B

---
- name: Install Drupal Console.
get_url:
url: https://drupalconsole.com/installer
dest: "{{ drupal_console_path }}"
- name: Ensure Drupal Console is executable.
file:
path: "{{ drupal_console_path }}"
mode: 0755
- name: Run Drupal Console init.
shell: >
php {{ drupal_console_path }} init
creates={{ drupal_console_config }}
- name: Update Drupal Console to latest version (if configured).
shell: >
php {{ drupal_console_path }} self-update
register: drupal_console_update
changed_when: "'console has been updated' in drupal_console_update.stdout"
when: drupal_console_keep_updated