Module: VagrantPlugins::Ansible::Cap::Guest::Ubuntu::AnsibleInstall

Defined in:
lib/cap/guest/ubuntu/ansible_install.rb

Class Method Summary collapse

Class Method Details

.ansible_install(machine) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/cap/guest/ubuntu/ansible_install.rb', line 9

def self.ansible_install(machine)
  machine.communicate.sudo("apt-get update -y -qq")
  machine.communicate.sudo("apt-get install -y -qq software-properties-common python-software-properties")
  machine.communicate.sudo("add-apt-repository ppa:ansible/ansible -y")
  machine.communicate.sudo("apt-get update -y -qq")
  machine.communicate.sudo("apt-get install -y -qq ansible")
end