Skip to content

Commit

Permalink
Update vm to xenial64
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Dec 21, 2017
1 parent 15f969e commit 210599c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@ $ansible_local_provisioning_script = <<SCRIPT
export DEBIAN_FRONTEND=noninteractive
export PYTHONUNBUFFERED=1
echo PyBossa provisioning with Ansible...
cp /vagrant/provisioning/ansible_hosts /home/vagrant/
chmod 666 /home/vagrant/ansible_hosts
echo Running playbook...
ansible-playbook /vagrant/provisioning/playbook.yml -i /home/vagrant/ansible_hosts -c local
SCRIPT

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.box = "ubuntu/xenial64"
config.vm.box_url = "https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-vagrant.box"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
Expand Down
4 changes: 2 additions & 2 deletions provisioning/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
redis_port: "6379"
schedule_interval: "60"
tasks:
- name: Check Ubuntu 14.04 running
- name: Check Ubuntu 16.04 running
assert:
that:
- ansible_distribution == 'Ubuntu'
- ansible_distribution_release == 'trusty'
- ansible_distribution_release == 'xenial'

- name: update apt cache
apt: update_cache=yes
Expand Down

0 comments on commit 210599c

Please sign in to comment.