commit b9b8a8c37c8f16fcc97b4e84b0a3711c3b487335 Author: Zakaria Date: Mon Aug 26 17:31:27 2024 +0000 Add 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'