Single necessary change - remove sha-sum of composer version

This commit is contained in:
2025-11-06 15:58:00 +03:00
parent f5b9100bc3
commit 9f832c7fbf
3 changed files with 9 additions and 8 deletions

View File

@ -12,14 +12,14 @@
| combine(inventory__group_environment | d({})) | combine(inventory__group_environment | d({}))
| combine(inventory__host_environment | d({})) }}' | combine(inventory__host_environment | d({})) }}'
vars_files:
- ./../../vars/databases.yml
vars: vars:
mariadb__upstream_mirror: 'https://mirror.netcologne.de/mariadb/mariadb-{{ mariadb__upstream_version }}/repo/{{ ansible_distribution | lower }}' mariadb__upstream_mirror: 'https://mirror.netcologne.de/mariadb/mariadb-{{ mariadb__upstream_version }}/repo/{{ ansible_distribution | lower }}'
mariadb__flavor: '{{ ansible_local.mariadb.flavor|d(mariadb__flavor_map[ansible_distribution_release] | d("mariadb")) }}' mariadb__flavor: '{{ ansible_local.mariadb.flavor|d(mariadb__flavor_map[ansible_distribution_release] | d("mariadb")) }}'
mariadb__upstream_version: '11.8.3' mariadb__upstream_version: '11.8.3'
vars_files:
- ./../../vars/databases.yml
roles: roles:

View File

@ -1,5 +1,5 @@
--- ---
# https://docs.debops.org/en/stable-3.2/ansible/roles/php/getting-started.html#example-playbook
- name: Install and manage PHP environment - name: Install and manage PHP environment
collections: [ 'debops.debops', 'debops.roles01', collections: [ 'debops.debops', 'debops.roles01',
'debops.roles02', 'debops.roles03' ] 'debops.roles02', 'debops.roles03' ]
@ -10,6 +10,8 @@
| combine(inventory__group_environment | d({})) | combine(inventory__group_environment | d({}))
| combine(inventory__host_environment | d({})) }}' | combine(inventory__host_environment | d({})) }}'
vars_files:
- ./../../vars/php.yml
vars: vars:
php__sury_apt_key_id_map: php__sury_apt_key_id_map:
@ -55,9 +57,6 @@
pm: static pm: static
pm_max_children: 3 pm_max_children: 3
vars_files:
- ./../../vars/php.yml
pre_tasks: pre_tasks:
- name: Apply keyring configuration for php environment - name: Apply keyring configuration for php environment

View File

@ -7,17 +7,19 @@
hosts: [ 'debian10' ] hosts: [ 'debian10' ]
vars_files:
- ./../../vars/php.yml
tasks: tasks:
- name: Download and install composer - name: Download and install composer
when: (php_version is defined) when: (php_version is defined)
shell: |- shell: |-
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" 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 composer-setup.php
php -r "unlink('composer-setup.php');" php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer mv composer.phar /usr/local/bin/composer
- name: Download and install composer - name: Downgrade composer to 1.x branch for legacy php versions
when: (php_version is defined and php_version == '7.4') when: (php_version is defined and php_version == '7.4')
shell: |- shell: |-
composer self-update 1.10.27 composer self-update 1.10.27