From ca53c960018386d0c9c1eb701e8423b08dbacbea Mon Sep 17 00:00:00 2001 From: Greg Dubicki Date: Wed, 30 Mar 2022 18:54:37 +0100 Subject: [PATCH] Fail early on contradicting version params --- tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index db8f6f1..f755b45 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,4 +1,10 @@ --- +- name: Check if requested version parameters are valid + fail: + message: You cannot request a specific version AND keeping composer up to date. + Set either composer_version or composer_keep_updated but not both. + when: composer_version != '' and composer_keep_updated + - name: Set php_executable variable to a default if not defined. set_fact: php_executable: php