update
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
---
|
||||||
- name: Get nix version
|
- name: Get nix version
|
||||||
shell: |
|
shell: |
|
||||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||||
@@ -8,7 +9,7 @@
|
|||||||
register: nix_version_output
|
register: nix_version_output
|
||||||
- name: Set nix version name
|
- name: Set nix version name
|
||||||
set_fact:
|
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
|
when: nix_version_output.rc == 0
|
||||||
- name: Download and run installer
|
- name: Download and run installer
|
||||||
block:
|
block:
|
||||||
|
|||||||
Reference in New Issue
Block a user