From c862766a4353243b300dbef3a26031de441c7844 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Tue, 26 May 2015 10:32:11 -0500 Subject: [PATCH] Fixes #42: Fails in --check mode. --- .travis.yml | 3 +++ tasks/main.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index f43fa55..9f233fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,9 @@ script: && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) + # Run the role/playbook in --check mode. + - "ansible-playbook -i tests/inventory tests/$SITE --check" + # Make sure PHP is running. - > php -v diff --git a/tasks/main.yml b/tasks/main.yml index 9f3deb9..9bd7a97 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -34,6 +34,7 @@ shell: php -r "echo PHP_VERSION;" register: php_version changed_when: false + always_run: yes - name: Disable opcache if PHP version is < 5.5. set_fact: