ansible/print_facts.yml

13 lines
302 B
YAML
Raw Normal View History

2022-10-18 12:05:56 +02:00
---
2022-10-21 12:38:35 +02:00
- hosts: all
2022-10-18 12:05:56 +02:00
gather_facts: true
become: false
tasks:
- name: System details
debug: "msg={{ item }}"
with_items:
- "{{ ansible_distribution }}"
2022-10-21 12:37:09 +02:00
- "{{ ansible_architecture }}"
2022-10-18 12:05:56 +02:00
- "{{ ansible_distribution_version }}"
- "{{ ansible_distribution_major_version }}"