From fb854d0a14e340cd2080930fa23f707a46070f85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Palencs=C3=A1r?= Date: Thu, 19 Jun 2025 05:53:21 +0200 Subject: [PATCH] Fix CentOS curl conflict: Use yum with allowerasing for RedHat systems --- playbooks/lemp-wordpress-multios.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/playbooks/lemp-wordpress-multios.yml b/playbooks/lemp-wordpress-multios.yml index 1312e1f..a2a99f8 100644 --- a/playbooks/lemp-wordpress-multios.yml +++ b/playbooks/lemp-wordpress-multios.yml @@ -89,7 +89,7 @@ state: present tags: php - - name: Install additional tools + - name: Install additional tools (Debian/Ubuntu) package: name: - curl @@ -97,6 +97,19 @@ - unzip - git 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 # Service Management