Fix lint warnings
This commit is contained in:
parent
955ba86525
commit
4cd8eb1775
2 changed files with 9 additions and 7 deletions
|
@ -6,3 +6,5 @@ php_fpm_pool_config_file: "{{ php_fpm_pool_dir }}/%i.cfg"
|
||||||
php_fpm_cpu_quota: "100%"
|
php_fpm_cpu_quota: "100%"
|
||||||
php_fpm_memory_high: "25%"
|
php_fpm_memory_high: "25%"
|
||||||
php_fpm_memory_max: "35%"
|
php_fpm_memory_max: "35%"
|
||||||
|
|
||||||
|
apache_php_module_name: "libapache2-mod-php{{ php_version.stdout }}"
|
||||||
|
|
|
@ -3,20 +3,20 @@
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: php.ini
|
src: php.ini
|
||||||
dest: "/etc/php/{{ php_version.stdout }}/mods-available/{{ inventory_hostname }}.ini"
|
dest: "/etc/php/{{ php_version.stdout }}/mods-available/{{ inventory_hostname }}.ini"
|
||||||
mode: 0644
|
mode: "0644"
|
||||||
|
|
||||||
- name: "PHP | Copy custom PHP-FPM configuration"
|
- name: "PHP | Copy custom PHP-FPM configuration"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: php-fpm.ini
|
src: php-fpm.ini
|
||||||
dest: "/etc/php/{{ php_version.stdout }}/mods-available/{{ inventory_hostname }}-fpm.ini"
|
dest: "/etc/php/{{ php_version.stdout }}/mods-available/{{ inventory_hostname }}-fpm.ini"
|
||||||
mode: 0644
|
mode: "0644"
|
||||||
|
|
||||||
- name: "PHP | Enable PHP configuration for mod_php"
|
- name: "PHP | Enable PHP configuration for mod_php"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
src: "/etc/php/{{ php_version.stdout }}/mods-available/{{ inventory_hostname }}.ini"
|
src: "/etc/php/{{ php_version.stdout }}/mods-available/{{ inventory_hostname }}.ini"
|
||||||
dest: "/etc/php/{{ php_version.stdout }}/apache2/conf.d/30-{{ inventory_hostname }}.ini"
|
dest: "/etc/php/{{ php_version.stdout }}/apache2/conf.d/30-{{ inventory_hostname }}.ini"
|
||||||
state: link
|
state: link
|
||||||
when: "'libapache2-mod-php{{ php_version.stdout }}' in ansible_facts.packages"
|
when: "'apache_php_module_name' in ansible_facts.packages"
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
|
|
||||||
- name: "PHP | Enable PHP cli configuration"
|
- name: "PHP | Enable PHP cli configuration"
|
||||||
|
@ -29,9 +29,9 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ php_fpm_log_dir }}"
|
path: "{{ php_fpm_log_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: "0755"
|
||||||
|
|
||||||
- name: "PHP | Enable PGP FPM configuration"
|
- name: "PHP | Enable PHP FPM configuration"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
src: "/etc/php/{{ php_version.stdout }}/mods-available/{{ inventory_hostname }}-fpm.ini"
|
src: "/etc/php/{{ php_version.stdout }}/mods-available/{{ inventory_hostname }}-fpm.ini"
|
||||||
dest: "/etc/php/{{ php_version.stdout }}/fpm/conf.d/30-{{ inventory_hostname }}-fpm.ini"
|
dest: "/etc/php/{{ php_version.stdout }}/fpm/conf.d/30-{{ inventory_hostname }}-fpm.ini"
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "systemd/{{ item }}"
|
src: "systemd/{{ item }}"
|
||||||
dest: "/etc/systemd/system/{{ item }}"
|
dest: "/etc/systemd/system/{{ item }}"
|
||||||
mode: 0644
|
mode: "0644"
|
||||||
loop:
|
loop:
|
||||||
- php-fpm@.service
|
- php-fpm@.service
|
||||||
- php-fpm@.socket
|
- php-fpm@.socket
|
||||||
|
@ -56,4 +56,4 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/systemd/system/php-fpm@.service.d
|
path: /etc/systemd/system/php-fpm@.service.d
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: "0755"
|
||||||
|
|
Loading…
Reference in a new issue