mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-30 11:15:42 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
11
roles/composer/tasks/cleanup.yml
Normal file
11
roles/composer/tasks/cleanup.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
|
||||
- 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
|
Reference in New Issue
Block a user