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