From 04fa08133ec04dca1371893b392621d5e5ce6628 Mon Sep 17 00:00:00 2001 From: NaeiKinDus Date: Fri, 27 Dec 2024 00:00:00 +0000 Subject: [PATCH] feat(development): moved Virtualbox installation behind a feature flag, defaults to false --- .../nullified/infrastructure/roles/development/defaults/main.yml | 1 + .../nullified/infrastructure/roles/development/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/collections/ansible_collections/nullified/infrastructure/roles/development/defaults/main.yml b/collections/ansible_collections/nullified/infrastructure/roles/development/defaults/main.yml index e892116..74563f4 100644 --- a/collections/ansible_collections/nullified/infrastructure/roles/development/defaults/main.yml +++ b/collections/ansible_collections/nullified/infrastructure/roles/development/defaults/main.yml @@ -7,3 +7,4 @@ development_rust_enabled: true development_docker_remap_user: "{{ development_user_account }}" development_docker_remap_group: "{{ development_user_account }}" development_docker_systemd_slice: docker.slice +development_virtualbox_enabled: false diff --git a/collections/ansible_collections/nullified/infrastructure/roles/development/tasks/main.yml b/collections/ansible_collections/nullified/infrastructure/roles/development/tasks/main.yml index 73e356f..cd502f0 100644 --- a/collections/ansible_collections/nullified/infrastructure/roles/development/tasks/main.yml +++ b/collections/ansible_collections/nullified/infrastructure/roles/development/tasks/main.yml @@ -167,6 +167,7 @@ - name: '[vbox] install Virtualbox' become: true + when: development_virtualbox_enabled is truthy block: - name: '[vbox] add repository key' ansible.builtin.get_url: