|
38 | 38 | pre_tasks:
|
39 | 39 | # You can safely remove these steps once you have a working composer.json.
|
40 | 40 | - name: Download composer file.
|
41 |
| - get_url: |
42 |
| - url: https://raw.githubusercontent.com/drupal/recommended-project/8.8.x/composer.json |
| 41 | + ansible.builtin.get_url: |
| 42 | + url: https://raw.githubusercontent.com/drupal/recommended-project/8.9.x/composer.json |
43 | 43 | dest: "{{ deploy_path }}/composer.json"
|
44 | 44 | force: false
|
| 45 | + - name: Adding composer/installers plugin to composer config. |
| 46 | + community.general.composer: |
| 47 | + command: config |
| 48 | + arguments: allow-plugins.composer/installers true |
| 49 | + working_dir: "{{ deploy_path }}" |
| 50 | + - name: Adding drupal/core-composer-scaffold plugin to composer config. |
| 51 | + community.general.composer: |
| 52 | + command: config |
| 53 | + arguments: allow-plugins.drupal/core-composer-scaffold true |
| 54 | + working_dir: "{{ deploy_path }}" |
| 55 | + - name: Adding drupal/core-project-message plugin to composer config. |
| 56 | + community.general.composer: |
| 57 | + command: config |
| 58 | + arguments: allow-plugins.drupal/core-project-message true |
| 59 | + working_dir: "{{ deploy_path }}" |
| 60 | + - name: Adding dealerdirect/phpcodesniffer-composer-installer plugin to composer config. |
| 61 | + community.general.composer: |
| 62 | + command: config |
| 63 | + arguments: allow-plugins.dealerdirect/phpcodesniffer-composer-installer true |
| 64 | + working_dir: "{{ deploy_path }}" |
45 | 65 | - name: Install drush.
|
46 |
| - command: |
47 |
| - cmd: composer require drush/drush "^10.6.2" |
48 |
| - chdir: "{{ deploy_path }}" |
| 66 | + community.general.composer: |
| 67 | + command: require |
| 68 | + arguments: drush/drush:10.* |
| 69 | + working_dir: "{{ deploy_path }}" |
49 | 70 | roles:
|
50 | 71 | - _init # Sets some variables the deploy scripts rely on.
|
51 | 72 | - composer # Composer install step.
|
|
0 commit comments