Trying to install a program from ansible playbook on vagrant but ends up failing

0 votes

I'm using vagrant with an ansible playbook that installs a few programs on an Ubuntu image. But one of the program keeps failing:

Vagrant file:

config.vm.provision :ansible do |ansible|
  ansible.verbose = "vvv"
  ansible.playbook = "provisioning/playbook.yml"
end

Console output:

ASK: [Install vim] *********************************************************** 
failed: [default] => {"failed": true}
...
Jan 13 in Ansible by rajni
56 views

1 answer to this question.

0 votes

Hey @Rajni, you can register the variable aptout and then print it.

- hosts: localhost
  sudo: true
  tasks:
    - name: get vi
      apt: state=latest name=vim
      register: aptout

        - debug: var=aptout
answered Jan 13 by Mike
What does aptout do?

Related Questions In Ansible

0 votes
1 answer

unable to build grails war on a vagrant machine using ansible

Try and run the command using shell ...READ MORE

answered Jul 2, 2018 in Ansible by ajs3033
• 7,280 points
61 views
0 votes
1 answer

Hey I'm trying to execute a playbook but I get the following error:

Hey, you have a syntax error as ...READ MORE

answered Mar 26 in Ansible by Kalgi
• 40,460 points
22 views
0 votes
1 answer

Running ansible command on a single server when it is deployed to multiple servers

You can try the run_once attribute: Example from ...READ MORE

answered Jun 13, 2018 in Ansible by DareDev
• 6,810 points
175 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
152 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer