Add test.yml
This commit is contained in:
commit
b9b8a8c37c
15
test.yml
Normal file
15
test.yml
Normal file
@ -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'
|
||||
Loading…
Reference in New Issue
Block a user