From b9b8a8c37c8f16fcc97b4e84b0a3711c3b487335 Mon Sep 17 00:00:00 2001 From: Zakaria Date: Mon, 26 Aug 2024 17:31:27 +0000 Subject: [PATCH] Add test.yml --- test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test.yml diff --git a/test.yml b/test.yml new file mode 100644 index 0000000..caeedd5 --- /dev/null +++ b/test.yml @@ -0,0 +1,15 @@ +--- +- hosts: all + become: yes + tasks: + - name: Install curl on Ubuntu servers + package: + name: curl + state: present + when: ansible_facts['os_family'] == 'Debian' + + - name: Install curl on Fedora servers + dnf: + name: curl + state: present + when: ansible_facts['distribution'] == 'Fedora'