Skip to content

Commit 68c122f

Browse files
committed
Updated the Drush file on drupal
1 parent 6306898 commit 68c122f

File tree

1 file changed

+38
-20
lines changed

1 file changed

+38
-20
lines changed

drupal-lomp-22-04/drupal-lomp.yaml

+38-20
Original file line numberDiff line numberDiff line change
@@ -179,26 +179,44 @@
179179
name: [ 'php-cli' , 'php-xml' , 'php-mbstring' , 'php-gd' , 'php-intl' , 'php-xsl' , 'php-mysql' ]
180180
state: latest
181181

182-
- name: Installing Composer
183-
shell: chmod +x /usr/local/src/drupal-lomp-22-04/composer.sh && /usr/local/src/drupal-lomp-22-04/composer.sh
184-
185-
- name: Copy Composer file
186-
copy:
187-
src: /usr/local/src/drupal-lomp-22-04/composer.phar
188-
dest: /usr/local/bin/composer
189-
remote_src: yes
190-
191-
- name: Setting permission for composer
192-
ansible.builtin.file:
193-
path: /usr/local/bin/composer
194-
mode: '0755'
195-
196-
- name: Creating a symlink
197-
ansible.builtin.file:
198-
src: "/usr/local/bin/composer"
199-
dest: "/usr/bin/composer"
200-
state: link
201-
182+
# - name: Installing Composer
183+
# shell: chmod +x /usr/local/src/drupal-lomp-22-04/composer.sh && /usr/local/src/drupal-lomp-22-04/composer.sh
184+
185+
# - name: Copy Composer file
186+
# copy:
187+
# src: /usr/local/src/drupal-lomp-22-04/composer.phar
188+
# dest: /usr/local/bin/composer
189+
# remote_src: yes
190+
191+
# - name: Setting permission for composer
192+
# ansible.builtin.file:
193+
# path: /usr/local/bin/composer
194+
# mode: '0755'
195+
196+
- name: Composer | Install Composer latest-stable
197+
get_url:
198+
url: https://getcomposer.org/download/latest-stable/composer.phar
199+
checksum: 'sha256:https://getcomposer.org/download/latest-stable/composer.phar.sha256sum'
200+
dest: /usr/local/bin/composer.phar
201+
mode: 0755
202+
203+
- name: Composer | Symlink composer.phar
204+
file:
205+
src: composer.phar
206+
dest: /usr/local/bin/composer
207+
state: link
208+
209+
# - name: Creating a symlink
210+
# ansible.builtin.file:
211+
# src: "/usr/local/bin/composer"
212+
# dest: "/usr/bin/composer"
213+
# state: link
214+
215+
- name: Download the Drush file
216+
get_url:
217+
url: https://github.com/drush-ops/drush-launcher/releases/latest/download/drush.phar
218+
dest: /usr/local/src/drush.phar
219+
202220
- name: Copy Drush file
203221
copy:
204222
src: /usr/local/src/drush.phar

0 commit comments

Comments
 (0)