ansible-roles/roles/composer/tasks/cleanup.yml
2021-12-01 19:13:34 +01:00

12 lines
307 B
YAML

---
- name: Check if composer exists in /usr/local/bin
stat: path=/usr/local/bin/composer
register: composer_local
tags: web
- name: Remove manually installed composer
file: path=/usr/local/bin/composer state=absent
when: composer_local.stat.exists and not composer_local.stat.islnk
tags: web