mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-02-26 09:32:10 +07:00
💚 Fix linters errors
This commit is contained in:
@@ -41,21 +41,6 @@
|
||||
ansible.builtin.service:
|
||||
name: nginx
|
||||
state: started
|
||||
when: ansible_virtualization_type != 'docker'
|
||||
|
||||
- name: Start nginx if testing with Docker
|
||||
when: ansible_virtualization_type == 'docker'
|
||||
block:
|
||||
|
||||
- name: COMMAND | Docker nginx status
|
||||
ansible.builtin.command: service nginx status
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
register: ngs
|
||||
|
||||
- name: COMMAND | Docker start nginx
|
||||
ansible.builtin.command: service nginx start
|
||||
when: ngs.stdout.find('nginx is not running') != -1
|
||||
|
||||
- name: FILE | Create /var/www
|
||||
ansible.builtin.file:
|
||||
@@ -79,4 +64,4 @@
|
||||
content: '<?php echo ini_get("memory_limit") . "\n";'
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
mode: 0644
|
||||
|
||||
@@ -33,4 +33,4 @@ php_fpm_poold:
|
||||
php_value:
|
||||
display_errors: 'Off'
|
||||
php_admin_value:
|
||||
memory_limit: '98M'
|
||||
memory_limit: '98M'
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
register: c
|
||||
failed_when: c.stdout == ''
|
||||
|
||||
- name: SHELL | Check custom php value
|
||||
- name: SHELL | Check custom php value # noqa: command-instead-of-module
|
||||
ansible.builtin.shell: "curl -H 'Host: {{ vhost }}' http://127.0.0.1/ini.php 2> /dev/null"
|
||||
changed_when: false
|
||||
register: c
|
||||
|
||||
@@ -29,4 +29,4 @@ provisioner:
|
||||
__nginx_conf: /etc/nginx/nginx.conf
|
||||
host_vars:
|
||||
debian-10-php-7.4:
|
||||
php_version: '7.4'
|
||||
php_version: '7.4'
|
||||
|
||||
Reference in New Issue
Block a user