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
155 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,280 points
208 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
• 51,970 points
112 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
807 views
+2 votes
1 answer
0 votes
1 answer