+ php-composer install own playbook with version downgrade for oldest php 7.4
* automatic detect php version and set php extension (for =>8 php version without installing gd, because Debian 11 need libgd3 fix for that) * mapping tld hostname for non-www redirection moved to conf.d and copy that file to remote machine with others existing map-files * some features in this commit not to be a tested in real environment
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
---
|
||||
- name: Solve problem with libgd3 for php-gd
|
||||
hosts: [ 'debian10' ]
|
||||
when: (php_version != '7.4')
|
||||
vars_files:
|
||||
- ./../../vars/php.yml
|
||||
tasks:
|
||||
|
23
playbooks/own/php-composer.yml
Normal file
23
playbooks/own/php-composer.yml
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
|
||||
- name: Install PHP Composer
|
||||
|
||||
collections: [ 'debops.debops', 'debops.roles01',
|
||||
'debops.roles02', 'debops.roles03' ]
|
||||
|
||||
hosts: [ 'debian10' ]
|
||||
|
||||
tasks:
|
||||
- name: Download and install composer
|
||||
when: (php_version is defined)
|
||||
shell: |-
|
||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
||||
php composer-setup.php
|
||||
php -r "unlink('composer-setup.php');"
|
||||
mv composer.phar /usr/local/bin/composer
|
||||
|
||||
- name: Download and install composer
|
||||
when: (php_version is defined and php_version == '7.4')
|
||||
shell: |-
|
||||
composer self-update 1.10.27
|
Reference in New Issue
Block a user