From 53f0972c8c842392b37e1dc09970b5f637dfcb35 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Fri, 30 Jun 2023 08:35:59 -0400 Subject: [PATCH] update --- roles/nix/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/nix/tasks/main.yml b/roles/nix/tasks/main.yml index c45281f..92c59d1 100644 --- a/roles/nix/tasks/main.yml +++ b/roles/nix/tasks/main.yml @@ -1,4 +1,5 @@ +--- - name: Get nix version shell: | . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh @@ -8,7 +9,7 @@ register: nix_version_output - name: Set nix version name set_fact: - nix_version_on_system: "{{ nix_version_output.stdout_lines[0] | cut -d' ' -f3 }}" + nix_version_on_system: "{{ (nix_version_output.stdout_lines[0] | split(' '))[2] }}" when: nix_version_output.rc == 0 - name: Download and run installer block: