playbook to fetch ansible distribution

main
Ricard Illa 2022-10-18 12:05:56 +02:00
parent 4542c0e1c0
commit c746b668d3
1 changed files with 12 additions and 0 deletions

12
get_distribution.yml Normal file
View File

@ -0,0 +1,12 @@
---
- hosts:
- pikvm
gather_facts: true
become: false
tasks:
- name: System details
debug: "msg={{ item }}"
with_items:
- "{{ ansible_distribution }}"
- "{{ ansible_distribution_version }}"
- "{{ ansible_distribution_major_version }}"