ansible/print_facts.yml

13 lines
302 B
YAML

---
- hosts: all
gather_facts: true
become: false
tasks:
- name: System details
debug: "msg={{ item }}"
with_items:
- "{{ ansible_distribution }}"
- "{{ ansible_architecture }}"
- "{{ ansible_distribution_version }}"
- "{{ ansible_distribution_major_version }}"