linting role opcache

This commit is contained in:
kirby 2025-05-27 09:51:30 +02:00
parent 0bb618a4a3
commit 44e2674cc4

View File

@ -1,14 +1,14 @@
--- ---
- name: copy opcache script to server - name: Copy opcache script to server
ansible.builtin.copy: ansible.builtin.copy:
src: opcache.php src: opcache.php
dest: /data/services/web/default/opcache.php dest: /data/services/web/default/opcache.php
owner: www-data owner: www-data
group: www-data group: www-data
mode: 0644 mode: "0644"
- name: remove opcache tuning in www.conf pool - name: Remove opcache tuning in www.conf pool
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: "/etc/php/{{ php_version }}/fpm/pool.d/www.conf" path: "/etc/php/{{ php_version }}/fpm/pool.d/www.conf"
state: absent state: absent
@ -22,11 +22,12 @@
path: /data/services/web/default/check/.online path: /data/services/web/default/check/.online
state: absent state: absent
- name: sleep for 6 seconds and continue with play - name: Sleep for 6 seconds and continue with play
ansible.builtin.wait_for: timeout=6 ansible.builtin.wait_for:
timeout: 6
delegate_to: localhost delegate_to: localhost
- name: restart php-fpm and apache - name: Restart php-fpm and apache
ansible.builtin.systemd: ansible.builtin.systemd:
name: "{{ item }}" name: "{{ item }}"
state: restarted state: restarted
@ -38,10 +39,11 @@
ansible.builtin.file: ansible.builtin.file:
path: /data/services/web/default/check/.online path: /data/services/web/default/check/.online
state: touch state: touch
mode: '0777' mode: "0777"
owner: "{{ user }}" owner: "{{ user }}"
group: "{{ user }}" group: "{{ user }}"
- name: sleep for 3 seconds and continue with play - name: Sleep for 3 seconds and continue with play
ansible.builtin.wait_for: timeout=3 ansible.builtin.wait_for:
timeout: 3
delegate_to: localhost delegate_to: localhost