aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--roles/vagrant/README.md3
-rw-r--r--roles/vagrant/tasks/main.yml15
2 files changed, 18 insertions, 0 deletions
diff --git a/roles/vagrant/README.md b/roles/vagrant/README.md
new file mode 100644
index 0000000..b8e7b50
--- /dev/null
+++ b/roles/vagrant/README.md
@@ -0,0 +1,3 @@
+* Install Vagrant.
+* Update plugins.
+* Cleanup unused data.
diff --git a/roles/vagrant/tasks/main.yml b/roles/vagrant/tasks/main.yml
new file mode 100644
index 0000000..76f1e60
--- /dev/null
+++ b/roles/vagrant/tasks/main.yml
@@ -0,0 +1,15 @@
+- name: Install Vagrant
+ become: true
+ ansible.builtin.package:
+ name: vagrant
+ state: present
+
+- name: Update plugins
+ ansible.builtin.command: vagrant plugin update
+
+- name: Prune invalid entries
+ become: true
+ ansible.builtin.command: vagrant global-status --prune
+
+- name: Clean up boxes
+ ansible.builtin.command: vagrant box prune --force --keep-active-boxes