module Ansible
A lightweight Ruby wrapper around Ansible
that allows for ad-hoc commands and playbook execution. The primary purpose is to support easy streaming output.
Constants
- VERSION
Public Instance Methods
<<(cmd)
click to toggle source
shortcut to run a Playbook
, streaming the output @param cmd [String] the command-line to pass @see Playbook#stream
# File lib/ansible/shortcuts.rb, line 14 def <<(cmd) Playbook.stream cmd end
[](cmd)
click to toggle source
shortcut for executing an Ad-Hoc command @param cmd [String] the command-line to pass @see AdHoc#run
# File lib/ansible/shortcuts.rb, line 7 def [](cmd) AdHoc.run cmd end
enable_shortcuts!()
click to toggle source
Enables shortcuts @see ansible/shortcuts.rb
# File lib/ansible-wrapper.rb, line 17 def enable_shortcuts! require 'ansible/shortcuts' end