php: Ermittle php-Version erst nach Installation

This commit is contained in:
phil 2022-12-28 16:47:35 +01:00
parent 1cb7e5332d
commit 7b90d5fd33

View file

@ -1,13 +1,13 @@
--- ---
- name: "Ermmittle PHP-Version"
shell:
cmd: php -v | grep -Po '(?<=PHP )([0-9.]{3})'
register: php_version
changed_when: false
check_mode: no
- import_tasks: packages.yml - import_tasks: packages.yml
tags: packages tags: packages
- name: "Ermmittle PHP-Version"
ansible.builtin.shell:
cmd: php -v | grep -Po '(?<=PHP )([0-9.]{3})'
register: php_version
changed_when: false
check_mode: false
- import_tasks: php.yml - import_tasks: php.yml
tags: php tags: php