Skip to content

Commit

Permalink
Add php version check after installation
Browse files Browse the repository at this point in the history
  • Loading branch information
medanthelinium committed Nov 29, 2023
1 parent b4a0925 commit 30fbda6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---

- name: Set PHP version

- name: Install PHP and extensions (Ubuntu/Debian)
when: ansible_os_family == 'Debian'
ansible.builtin.import_tasks: install.yaml

- name: Set up XDebug
when: php.xdebug.disable_by_default
ansible.builtin.import_tasks: xdebug.yaml
- name: Get PHP version
changed_when: no
register: php_version
ansible.builtin.command:
cmd: "php -r 'echo phpversion();' | grep -o '[0-9]\\.[0-9]'"

- name: Set up phpfpmtop
ansible.builtin.import_tasks: phpfpmtop.yaml
Expand Down

0 comments on commit 30fbda6

Please sign in to comment.