diff --git a/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb b/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb index 062bea01c..a6a2749e7 100644 --- a/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb +++ b/plugins/provisioners/ansible/cap/guest/arch/ansible_install.rb @@ -11,8 +11,8 @@ module VagrantPlugins if install_mode == :pip raise Ansible::Errors::AnsiblePipInstallIsNotSupported else - machine.communicate.sudo("pacman -Syy --noconfirm") - machine.communicate.sudo("pacman -S --noconfirm ansible") + machine.communicate.sudo "pacman -Syy --noconfirm" + machine.communicate.sudo "pacman -S --noconfirm ansible" end end diff --git a/plugins/provisioners/ansible/cap/guest/debian/ansible_install.rb b/plugins/provisioners/ansible/cap/guest/debian/ansible_install.rb index 3ce214bf3..20c818628 100644 --- a/plugins/provisioners/ansible/cap/guest/debian/ansible_install.rb +++ b/plugins/provisioners/ansible/cap/guest/debian/ansible_install.rb @@ -31,9 +31,9 @@ if [ x$CODENAME == 'xwheezy' ]; then fi INLINE_CRIPT - machine.communicate.sudo(install_backports_if_wheezy_release) - machine.communicate.sudo("apt-get update -y -qq") - machine.communicate.sudo("apt-get install -y -qq ansible") + machine.communicate.sudo install_backports_if_wheezy_release + machine.communicate.sudo "apt-get update -y -qq" + machine.communicate.sudo "apt-get install -y -qq ansible" end def self.pip_setup(machine) diff --git a/plugins/provisioners/ansible/cap/guest/freebsd/ansible_install.rb b/plugins/provisioners/ansible/cap/guest/freebsd/ansible_install.rb index 4bb683c45..947f6b934 100644 --- a/plugins/provisioners/ansible/cap/guest/freebsd/ansible_install.rb +++ b/plugins/provisioners/ansible/cap/guest/freebsd/ansible_install.rb @@ -11,7 +11,7 @@ module VagrantPlugins if install_mode == :pip raise Ansible::Errors::AnsiblePipInstallIsNotSupported else - machine.communicate.sudo("yes | pkg install ansible") + machine.communicate.sudo "yes | pkg install ansible" end end diff --git a/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb b/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb index 16abae9bf..329eab8a9 100644 --- a/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb +++ b/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb @@ -14,7 +14,7 @@ module VagrantPlugins command << "&& ansible --version | grep 'ansible #{version}'" end - machine.communicate.test(command, sudo: false) + machine.communicate.test command, sudo: false end end