Skip to content

Instantly share code, notes, and snippets.

View pfriedland's full-sized avatar
🏠
Working from home

Peter Friedland pfriedland

🏠
Working from home
  • ENEL Green Power North America
  • Andover, MA
View GitHub Profile
@pfriedland
pfriedland / ansible-debug-os.yml
Created October 3, 2018 18:47 — forked from kguay/ansible-debug-os.yml
Ansible playbook to get os distro and version for all hosts. Works on Fedora/CentOS/RedHat machines.
- name: Print linux distribution and version
hosts: all
tasks:
- name: capture output of id command
command: cat /etc/system-release
register: login
- debug: msg="{{ login.stdout }}"