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
become: yes
become: true
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'
- name: Print os info
ansible.builtin.package:
name: apache2