Fixt others lint errors
parent
85cab7d166
commit
49d32908b8
|
@ -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
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
|
||||
argument_specs:
|
||||
main:
|
||||
short_description: Main entry point
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
|
||||
galaxy_info:
|
||||
author: Emilien Mantel
|
||||
role_name: php
|
||||
|
@ -31,4 +32,5 @@ galaxy_info:
|
|||
- debian
|
||||
- ubuntu
|
||||
- freebsd
|
||||
|
||||
dependencies: []
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue