From e2356a30e4069fbf65f4aa4fafa1a1aadd69dbcb Mon Sep 17 00:00:00 2001 From: Jason Ernst Date: Thu, 21 Mar 2024 13:06:24 -0700 Subject: [PATCH] fix the way virtualbox is installed --- ansible/playbook.yml | 14 ++------------ ansible/roles/development/ops/tasks/main.yml | 9 +++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/ansible/playbook.yml b/ansible/playbook.yml index 3ce1583..fed1503 100644 --- a/ansible/playbook.yml +++ b/ansible/playbook.yml @@ -13,6 +13,7 @@ - name: Non-GUI Development Software hosts: development + gather_facts: yes vars_files: - vars/deb_arch.yml - vars/user.yml @@ -76,15 +77,4 @@ # enable these when ombi moves to its own server # - web_common/nginx # - web_common/letsencrypt - - ombi_jasonernst_com/ombi - -- name: Virtualbox - hosts: all - become: yes - gather_facts: yes - tags: - - virtualbox - roles: - - buluma.virtualbox - vars: - virtualbox_version: "7.0" \ No newline at end of file + - ombi_jasonernst_com/ombi \ No newline at end of file diff --git a/ansible/roles/development/ops/tasks/main.yml b/ansible/roles/development/ops/tasks/main.yml index 27fe504..fcf8dac 100644 --- a/ansible/roles/development/ops/tasks/main.yml +++ b/ansible/roles/development/ops/tasks/main.yml @@ -50,6 +50,15 @@ vars: vagrant_version: 2.4.1 +# need to use import and include because otherwise nothing will run here +- name: Import virtualbox role + tags: virtualbox + become: true + ansible.builtin.import_role: + name: buluma.virtualbox + vars: + virtualbox_version: "7.0" + - name: Add packer GPG tags: packer become: true