Update test.yml

This commit is contained in:
2024-08-26 17:32:02 +00:00
parent b9b8a8c37c
commit d154fb1886
+4 -12
View File
@@ -1,15 +1,7 @@
--- ---
- hosts: all - hosts: all
become: yes become: true
tasks: tasks:
- name: Install curl on Ubuntu servers - name: Print os info
package: ansible.builtin.package:
name: curl name: apache2
state: present
when: ansible_facts['os_family'] == 'Debian'
- name: Install curl on Fedora servers
dnf:
name: curl
state: present
when: ansible_facts['distribution'] == 'Fedora'