aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/vagrant/tasks/main.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-01-25 14:40:44 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-01-25 14:40:44 +0100
commitb02a8c40c76cb2e61c7a664ec156407101201a24 (patch)
tree0e046b783331db1bbba78bee75dbdac2e67e420a /roles/vagrant/tasks/main.yml
parentlinting (diff)
downloadmaintenance-b02a8c40c76cb2e61c7a664ec156407101201a24.tar.gz
maintenance-b02a8c40c76cb2e61c7a664ec156407101201a24.zip
move tool existence conditionals to role common
Diffstat (limited to 'roles/vagrant/tasks/main.yml')
-rw-r--r--roles/vagrant/tasks/main.yml22
1 files changed, 7 insertions, 15 deletions
diff --git a/roles/vagrant/tasks/main.yml b/roles/vagrant/tasks/main.yml
index 31bfe11..53a64c2 100644
--- a/roles/vagrant/tasks/main.yml
+++ b/roles/vagrant/tasks/main.yml
@@ -1,17 +1,9 @@
-- name: Check if vagrant is installed
- command: vagrant --version
- register: vagrant_version
- changed_when: false
- failed_when: false
+- name: Update plugins
+ command: vagrant plugin update
-- when: vagrant_version.rc == 0
- block:
- - name: Update plugins
- command: vagrant plugin update
+- name: Prune invalid entries
+ command: vagrant global-status --prune
+ become: true
- - name: Prune invalid entries
- command: vagrant global-status --prune
- become: true
-
- - name: Clean up boxes
- command: vagrant box prune --force --keep-active-boxes
+- name: Clean up boxes
+ command: vagrant box prune --force --keep-active-boxes