Sha256: 9b9ef8e706c69d976264576089b83e070d9ef9889fceff74aaabf1bcf3035af8

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 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
      execute(command, &block)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
milc-0.1.3 lib/milc/dsl/ansible.rb
milc-0.1.2 lib/milc/dsl/ansible.rb
milc-0.1.1 lib/milc/dsl/ansible.rb
milc-0.1.0 lib/milc/dsl/ansible.rb