composer: Don't report changed in check mode

This commit is contained in:
uumas
2025-01-27 06:03:27 +02:00
parent ed0c1845e1
commit 4e5282b939

View File

@@ -17,7 +17,9 @@
url: https://getcomposer.org/download/latest-stable/composer.phar
dest: "{{ ansible_user_dir }}/.local/bin/composer"
mode: "0755"
when: (not _composer_user_executable.stat.exists) or composer_upgrade
when:
- (not _composer_user_executable.stat.exists) or composer_upgrade
- not ansible_check_mode
- name: Set composer path to use local installation
ansible.builtin.set_fact: