Fix lint errors due to ansible-lint latest versions

This commit is contained in:
Emilien Mantel
2022-10-06 12:14:55 +02:00
parent 4aef107c1a
commit 85cab7d166
6 changed files with 33 additions and 26 deletions

View File

@@ -60,6 +60,8 @@
group: root
mode: 0644
register: f
tags:
- skip_ansible_lint
- name: SETUP | Gathers new facts
ansible.builtin.setup:
@@ -107,7 +109,9 @@
state: started
when: php_install_fpm and ansible_virtualization_type != 'docker'
- block:
- name: BLOCK | Ensure PHP-FPM is started if running on Docker
when: php_install_fpm and ansible_virtualization_type == 'docker'
block:
- name: COMMAND | Check if PHP-FPM is started (Docker)
ansible.builtin.command: 'service {{ php_fpm_service }} status'
@@ -122,5 +126,3 @@
args:
warn: false
when: dps.stdout.find('is not running') != -1
when: php_install_fpm and ansible_virtualization_type == 'docker'

View File

@@ -1,6 +1,8 @@
---
- block:
- name: Install opcache/apcu on Debian
when: ansible_os_family == 'Debian'
block:
- name: APT | Install APCu
ansible.builtin.apt:
@@ -12,9 +14,10 @@
pkg: "{{ php_package_prefix }}opcache"
install_recommends: false
when: ansible_os_family == 'Debian'
- block:
- name: Install opcache/apcu on FreeBSD
when: ansible_os_family == 'FreeBSD'
block:
- name: PKGNG | Install APCu
community.general.pkgng:
@@ -24,8 +27,6 @@
community.general.pkgng:
name: "{{ php_package_prefix }}opcache"
when: ansible_os_family == 'FreeBSD'
- name: TEMPLATE | Configure Opcache
ansible.builtin.template:
src: "etc/__php__/mods-available/opcache.ini.j2"

View File

@@ -1,6 +1,8 @@
---
- block:
- name: BLOCK | Uninstall xdebug
when: php_install_xdebug
block:
- name: APT | Install xdebug
ansible.builtin.apt:
@@ -24,9 +26,10 @@
mode: 0644
notify: restart php-fpm
when: php_install_xdebug
- block:
- name: BLOCK | Uninstall xdebug
when: not php_install_xdebug
block:
- name: APT | Uninstall xdebug
ansible.builtin.apt:
@@ -39,5 +42,3 @@
name: "{{ php_xdebug_package }}"
state: absent
when: ansible_os_family == 'FreeBSD'
when: not php_install_xdebug