Sha256: 1e5da40e4f4c925dd58f9e553e0cba96eac81d757aacec092f4495141b741a19
Contents?: true
Size: 619 Bytes
Versions: 2
Compression:
Stored size: 619 Bytes
Contents
require "milc/dsl" module Milc::Dsl module Ansible def ansible_playbook(cmd, &block) # https://github.com/mitchellh/vagrant/blob/0098b7604d071948fd37b16dd10b87b6df49b624/plugins/provisioners/ansible/provisioner.rb#L58 command = "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook #{cmd}" command << " -vvvv" if Milc.verbose begin execute(command, returns: :none, logging: :both, &block) rescue LoggerPipe::Failure => e $stderr.puts e.buffer.join $stderr.puts("\e[31m[#{e.class.name}] #{e.message}\e[0m") raise e end nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
milc-0.2.2 | lib/milc/dsl/ansible.rb |
milc-0.2.1 | lib/milc/dsl/ansible.rb |