diff --git a/Vagrantfile b/Vagrantfile index 454278a..42eea0d 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -14,9 +14,21 @@ Vagrant.configure("2") do |config| platform = "ubuntu/xenial64" end + plugin_installed = false + unless Vagrant.has_plugin? ("vagrant-disksize") + system "vagrant plugin install vagrant-disksize" + plugin_installed = true + end + + # Restart Vagrant when new plugin is installed + if plugin_installed === true + exec "vagrant #{ARGV.join' '}" + end + servers.each do |machine| config.vm.define machine do |node| node.vm.box = platform + node.disksize.size = '100GB' node.vm.hostname = machine node.vm.provision :ansible do |ansible| diff --git a/aws/explorer.yml b/aws/explorer.yml index d7b6d53..5a2b91b 100644 --- a/aws/explorer.yml +++ b/aws/explorer.yml @@ -60,7 +60,7 @@ wait_for: host={{ item.public_ip }} port=22 delay=90 timeout=320 state=started with_items: "{{ ec2.instances }}" when: ec2.changed -tags: explorer + tags: explorer - name: Installing python hosts: launched diff --git a/roles/elixir/tasks/centos.yml b/roles/elixir/tasks/centos.yml index 22968b8..cf14a83 100644 --- a/roles/elixir/tasks/centos.yml +++ b/roles/elixir/tasks/centos.yml @@ -40,7 +40,7 @@ - name: Add PostgreSQL Yum Repository yum: name: '{{ POSGRESQL_RPM_URL }}' - state: present + state: present - name: Install PostgreSQL yum: name={{ item }} state=installed