Fix CentOS curl conflict: Use yum with allowerasing for RedHat systems

This commit is contained in:
Sebastian Palencsár
2025-06-19 05:53:21 +02:00
parent 7fd6dc6b9e
commit fb854d0a14

View File

@@ -89,7 +89,7 @@
state: present state: present
tags: php tags: php
- name: Install additional tools - name: Install additional tools (Debian/Ubuntu)
package: package:
name: name:
- curl - curl
@@ -97,6 +97,19 @@
- unzip - unzip
- git - git
state: present state: present
when: ansible_os_family == "Debian"
tags: tools
- name: Install additional tools (RedHat/CentOS)
yum:
name:
- curl
- wget
- unzip
- git
state: present
allowerasing: yes
when: ansible_os_family == "RedHat"
tags: tools tags: tools
# Service Management # Service Management