From 8261f535925efb641ea0622a069098447d5746ff Mon Sep 17 00:00:00 2001 From: abrown38 Date: Mon, 15 Apr 2024 13:28:02 +0000 Subject: [PATCH] change drive label to variable --- ansible/roles/win_chocolatey/tasks/disk.yml | 4 ++-- ansible/roles/win_chocolatey/vars/main.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ansible/roles/win_chocolatey/tasks/disk.yml b/ansible/roles/win_chocolatey/tasks/disk.yml index acf48ea..1377b70 100644 --- a/ansible/roles/win_chocolatey/tasks/disk.yml +++ b/ansible/roles/win_chocolatey/tasks/disk.yml @@ -13,8 +13,8 @@ partition_size: -1 state: present - - name: Create NTFS filesystem and label it + - name: Create NTFS filesystem and label it win_format: drive_letter: "{{ choco_drive_letter }}" file_system: NTFS - new_label: Chocolatey + new_label: "{{ choco_drive_label }}" diff --git a/ansible/roles/win_chocolatey/vars/main.yml b/ansible/roles/win_chocolatey/vars/main.yml index dcc3f96..3b83360 100644 --- a/ansible/roles/win_chocolatey/vars/main.yml +++ b/ansible/roles/win_chocolatey/vars/main.yml @@ -1,4 +1,5 @@ choco_drive_letter: R +choco_drive_label: Chocolatey opt_chocolatey_server_http_port: 80 opt_chocolatey_server_path: R:\tools\ choco_package_path: R:\tools\chocolatey.server\App_Data\Packages