From bb74e7afc1837bfb3793976c1d7265b9df482e99 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 20 Nov 2023 01:36:23 +0100 Subject: add vagrant role --- roles/vagrant/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/vagrant/tasks/main.yml (limited to 'roles/vagrant/tasks/main.yml') 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 -- cgit v1.2.3