Skip to content

Commit

Permalink
Merge pull request #79 from gdubicki/fail_on_contradicting_parameters
Browse files Browse the repository at this point in the history
Fail early on contradicting version params
  • Loading branch information
geerlingguy authored Mar 31, 2022
2 parents 112801d + ca53c96 commit b816bbb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b816bbb

Please sign in to comment.