Commit d2bc812f authored by Lu Xu's avatar Lu Xu 👀

playbook(util): debug yml to get os info

parent 1316e73d
- hosts: localhost
gather_facts: yes
become: false
tasks:
- name: Distribution
debug: msg="{{ ansible_distribution }}"
- name: Distribution version
debug: msg="{{ ansible_distribution_version}}"
- name: Distribution major version
debug: msg="{{ ansible_distribution_major_version }}"
- name: OS family
debug: msg="{{ ansible_os_family }}"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment