Skip to content

Instantly share code, notes, and snippets.

Created May 2, 2017 07:44
Show Gist options
  • Save anonymous/e4349eb54a72f1956d287cc134752452 to your computer and use it in GitHub Desktop.
Save anonymous/e4349eb54a72f1956d287cc134752452 to your computer and use it in GitHub Desktop.
host_hash.each do |each_host|
if each_host.has_key?(Debian)
puts each_host
else
puts "No host with specified hostgroup found."
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment