diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-11-20 01:36:23 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-11-20 01:36:23 +0100 |
commit | bb74e7afc1837bfb3793976c1d7265b9df482e99 (patch) | |
tree | 065458fc2563b860fd11e9b22ea54f1fd8733866 /roles/vagrant/tasks | |
parent | ppa: derive the distribution automatically (diff) | |
download | infra-ansible-bb74e7afc1837bfb3793976c1d7265b9df482e99.tar.gz infra-ansible-bb74e7afc1837bfb3793976c1d7265b9df482e99.zip |
add vagrant role
Diffstat (limited to 'roles/vagrant/tasks')
-rw-r--r-- | roles/vagrant/tasks/main.yml | 15 |
1 files changed, 15 insertions, 0 deletions
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 |