From 2a5a1701f376ccef0bd7cc6d53f5d79b0bd04bf4 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Thu, 7 Dec 2017 12:40:16 +0100 Subject: [PATCH] Try fix travis: php service not started --- tests/includes/pre_Debian.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/includes/pre_Debian.yml b/tests/includes/pre_Debian.yml index 99eed08..3af0f97 100644 --- a/tests/includes/pre_Debian.yml +++ b/tests/includes/pre_Debian.yml @@ -70,17 +70,18 @@ cache_valid_time: 3600 state: present with_items: "{{ nginx_php }}" + register: apt_php - name: SERVICE | Force start fcgiwrap service: name: "fcgiwrap" state: started -- name: SERVICE | Force start PHP - service: - name: "{{ item.version | php_fpm_service }}" - state: started +# Bypasses Ansible 2.4 issue (cannot use service module)... With service module... php is not really started! +- name: COMMAND | Force start PHP + command: "service {{ item.version | php_fpm_service }} start" with_items: "{{ nginx_php }}" + when: apt_php.changed - name: GET_URL | Download ngrok get_url: