25 lines
576 B
YAML
25 lines
576 B
YAML
---
|
|
- name: Package tasks
|
|
ansible.builtin.import_tasks: packages.yml
|
|
tags: packages
|
|
|
|
- name: "Get PHP version"
|
|
ansible.builtin.shell:
|
|
cmd: php -v | grep -Po '(?<=PHP )([0-9.]{3})'
|
|
register: php_version
|
|
changed_when: false
|
|
check_mode: false
|
|
tags: php_version
|
|
|
|
- name: PHP tasks
|
|
ansible.builtin.import_tasks: php.yml
|
|
tags: php
|
|
|
|
- name: User tasks
|
|
ansible.builtin.import_tasks: user.yml
|
|
tags: never, user
|
|
|
|
- name: Prometheus exporter
|
|
ansible.builtin.import_tasks: prometheus.yml
|
|
tags: exporter
|
|
when: phpfpm_exporter is defined and phpfpm_exporter
|