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, 2019 in Ansible by rajni
899 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, 2019 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,300 points
867 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, 2019 in Ansible by Kalgi
• 52,350 points
804 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,059 views
+2 votes
1 answer
+1 vote
2 answers
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP