diff --git a/handlers/main.yml b/handlers/main.yml index f15ce53..011d859 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,13 +1,13 @@ --- -- name: restart php-fpm +- name: Restart php-fpm ansible.builtin.service: name: '{{ php_fpm_service }}' state: restarted when: php_install_fpm notify: docker restart php-fpm -- name: docker restart php-fpm +- name: Docker restart php-fpm ansible.builtin.command: 'service {{ php_fpm_service }} restart' args: warn: false diff --git a/meta/argument_specs.yml b/meta/argument_specs.yml new file mode 100644 index 0000000..b185557 --- /dev/null +++ b/meta/argument_specs.yml @@ -0,0 +1,5 @@ +--- + +argument_specs: + main: + short_description: Main entry point diff --git a/meta/main.yml b/meta/main.yml index 2d3aac1..5e6293a 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,4 +1,5 @@ --- + galaxy_info: author: Emilien Mantel role_name: php @@ -31,4 +32,5 @@ galaxy_info: - debian - ubuntu - freebsd + dependencies: [] diff --git a/tasks/fpm.yml b/tasks/fpm.yml index c66a9a4..6d4af4b 100644 --- a/tasks/fpm.yml +++ b/tasks/fpm.yml @@ -22,7 +22,7 @@ group: root mode: 0644 loop: "{{ php_ini | combine(php_ini_fpm) | dict2items }}" - notify: restart php-fpm + notify: Restart php-fpm - name: TEMPLATE | Deploy pool configuration ansible.builtin.template: @@ -32,11 +32,11 @@ group: root mode: 0644 loop: "{{ ansible_local.hanxhx_php.fpm_pool }}" - notify: restart php-fpm + notify: Restart php-fpm - name: FILE | Delete default pool if necessary ansible.builtin.file: path: "{{ php_fpm_pool_dir }}/www.conf" state: absent when: '"www" not in (ansible_local.hanxhx_php.fpm_pool | map(attribute="name") | list) and php_autoremove_default_pool' - notify: restart php-fpm + notify: Restart php-fpm diff --git a/tasks/main.yml b/tasks/main.yml index 1f72e15..0a3a71d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -78,13 +78,13 @@ install_recommends: false vars: pkgs: "{{ php_packages + php_extra_packages | flatten }}" - notify: restart php-fpm + notify: Restart php-fpm when: ansible_os_family == 'Debian' - name: PKGNG | Install PHP packages community.general.pkgng: name: "{{ php_packages + php_extra_packages | flatten | join(',') }}" - notify: restart php-fpm + notify: Restart php-fpm when: ansible_os_family == 'FreeBSD' - name: IMPORT_TASKS | PHP-FPM diff --git a/tasks/opcache.yml b/tasks/opcache.yml index c7144c4..26ccf51 100644 --- a/tasks/opcache.yml +++ b/tasks/opcache.yml @@ -34,7 +34,7 @@ owner: root group: root mode: 0644 - notify: restart php-fpm + notify: Restart php-fpm - name: TEMPLATE | Configure APCu ansible.builtin.template: @@ -43,4 +43,4 @@ owner: root group: root mode: 0644 - notify: restart php-fpm + notify: Restart php-fpm diff --git a/tasks/xdebug.yml b/tasks/xdebug.yml index a4e3ddc..b7dd363 100644 --- a/tasks/xdebug.yml +++ b/tasks/xdebug.yml @@ -24,7 +24,7 @@ dest: "{{ php_mods_dir }}/xdebug.ini" owner: root mode: 0644 - notify: restart php-fpm + notify: Restart php-fpm - name: BLOCK | Uninstall xdebug diff --git a/tests/test.yml b/tests/test.yml index a1ea551..dc1e42c 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -96,13 +96,13 @@ ansible.builtin.service: name: nginx state: reloaded - notify: docker reload nginx + notify: Docker reload nginx - name: Docker reload nginx ansible.builtin.command: service nginx reload args: warn: false - notify: docker reload nginx + notify: Docker reload nginx when: ansible_virtualization_type == 'docker' roles: