Add Nix installation

This commit is contained in:
2022-05-03 05:21:00 +02:00
parent d596a5fa9a
commit 07b685a89b
4 changed files with 151 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
---
# Obvious race condition here that we are just going to ignore
- name: Copy Nix installation script
become: yes
ansible.builtin.copy:
src: install-nix
dest: /etc/pbri/install-nix
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
mode: "0755"
# --daemon: multi-user installation
# < /dev/null: Stops the script asking for permission
- name: Run Nix installation script
ansible.builtin.shell:
cmd: /etc/pbri/install-nix --daemon < /dev/null
args:
creates: /nix