Skip to content

Commit

Permalink
vagrant: update apt cache before installing Ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzel committed Oct 24, 2024
1 parent f415846 commit 576dc1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Vagrant.configure(2) do |config|
# set stdout_callback = yaml to improve error output
# note: problem with \1yaml -> \x01yaml in ansible.cfg
config.vm.provision "shell",
inline: "apt-get install -y ansible && mkdir -p /etc/ansible && echo -e '[defaults]\nstdout_callback = yaml' > /etc/ansible/ansible.cfg"
inline: "apt-get update && apt-get install -y ansible && mkdir -p /etc/ansible && echo -e '[defaults]\nstdout_callback = yaml' > /etc/ansible/ansible.cfg"

config.vm.provision "ansible_local" do |ansible|
# debug
Expand Down

0 comments on commit 576dc1e

Please sign in to comment.