This commit is contained in:
2023-06-30 08:35:59 -04:00
parent f73e455b10
commit 53f0972c8c

View File

@@ -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: