Fixt others lint errors

fix_lint
Emilien Mantel 2022-10-06 12:42:56 +02:00
parent 85cab7d166
commit 49d32908b8
8 changed files with 19 additions and 12 deletions

View File

@ -1,13 +1,13 @@
--- ---
- name: restart php-fpm - name: Restart php-fpm
ansible.builtin.service: ansible.builtin.service:
name: '{{ php_fpm_service }}' name: '{{ php_fpm_service }}'
state: restarted state: restarted
when: php_install_fpm when: php_install_fpm
notify: docker restart php-fpm notify: docker restart php-fpm
- name: docker restart php-fpm - name: Docker restart php-fpm
ansible.builtin.command: 'service {{ php_fpm_service }} restart' ansible.builtin.command: 'service {{ php_fpm_service }} restart'
args: args:
warn: false warn: false

View File

@ -0,0 +1,5 @@
---
argument_specs:
main:
short_description: Main entry point

View File

@ -1,4 +1,5 @@
--- ---
galaxy_info: galaxy_info:
author: Emilien Mantel author: Emilien Mantel
role_name: php role_name: php
@ -31,4 +32,5 @@ galaxy_info:
- debian - debian
- ubuntu - ubuntu
- freebsd - freebsd
dependencies: [] dependencies: []

View File

@ -22,7 +22,7 @@
group: root group: root
mode: 0644 mode: 0644
loop: "{{ php_ini | combine(php_ini_fpm) | dict2items }}" loop: "{{ php_ini | combine(php_ini_fpm) | dict2items }}"
notify: restart php-fpm notify: Restart php-fpm
- name: TEMPLATE | Deploy pool configuration - name: TEMPLATE | Deploy pool configuration
ansible.builtin.template: ansible.builtin.template:
@ -32,11 +32,11 @@
group: root group: root
mode: 0644 mode: 0644
loop: "{{ ansible_local.hanxhx_php.fpm_pool }}" loop: "{{ ansible_local.hanxhx_php.fpm_pool }}"
notify: restart php-fpm notify: Restart php-fpm
- name: FILE | Delete default pool if necessary - name: FILE | Delete default pool if necessary
ansible.builtin.file: ansible.builtin.file:
path: "{{ php_fpm_pool_dir }}/www.conf" path: "{{ php_fpm_pool_dir }}/www.conf"
state: absent state: absent
when: '"www" not in (ansible_local.hanxhx_php.fpm_pool | map(attribute="name") | list) and php_autoremove_default_pool' 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

View File

@ -78,13 +78,13 @@
install_recommends: false install_recommends: false
vars: vars:
pkgs: "{{ php_packages + php_extra_packages | flatten }}" pkgs: "{{ php_packages + php_extra_packages | flatten }}"
notify: restart php-fpm notify: Restart php-fpm
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: PKGNG | Install PHP packages - name: PKGNG | Install PHP packages
community.general.pkgng: community.general.pkgng:
name: "{{ php_packages + php_extra_packages | flatten | join(',') }}" name: "{{ php_packages + php_extra_packages | flatten | join(',') }}"
notify: restart php-fpm notify: Restart php-fpm
when: ansible_os_family == 'FreeBSD' when: ansible_os_family == 'FreeBSD'
- name: IMPORT_TASKS | PHP-FPM - name: IMPORT_TASKS | PHP-FPM

View File

@ -34,7 +34,7 @@
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
notify: restart php-fpm notify: Restart php-fpm
- name: TEMPLATE | Configure APCu - name: TEMPLATE | Configure APCu
ansible.builtin.template: ansible.builtin.template:
@ -43,4 +43,4 @@
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
notify: restart php-fpm notify: Restart php-fpm

View File

@ -24,7 +24,7 @@
dest: "{{ php_mods_dir }}/xdebug.ini" dest: "{{ php_mods_dir }}/xdebug.ini"
owner: root owner: root
mode: 0644 mode: 0644
notify: restart php-fpm notify: Restart php-fpm
- name: BLOCK | Uninstall xdebug - name: BLOCK | Uninstall xdebug

View File

@ -96,13 +96,13 @@
ansible.builtin.service: ansible.builtin.service:
name: nginx name: nginx
state: reloaded state: reloaded
notify: docker reload nginx notify: Docker reload nginx
- name: Docker reload nginx - name: Docker reload nginx
ansible.builtin.command: service nginx reload ansible.builtin.command: service nginx reload
args: args:
warn: false warn: false
notify: docker reload nginx notify: Docker reload nginx
when: ansible_virtualization_type == 'docker' when: ansible_virtualization_type == 'docker'
roles: roles: