diff --git a/Dockerfile b/Dockerfile index 201e69d..1b65d5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN apt update && apt -y install software-properties-common && add-apt-repositor # run Ansible commands COPY ./requirements.yaml ./playbook.yaml ./ -RUN ansible-galaxy install -r requirements.yaml && ansible-playbook -i,localhost playbook.yaml --tags "all" && rm -f ./*.yaml +RUN ansible-galaxy install -r requirements.yaml && ansible-playbook -vvvv -i,localhost playbook.yaml --tags "all" && rm -f ./*.yaml # Custom Desktop Background - replace bg_custom.png on disk with your own background image COPY ./bg_fairy_penguins_1600x800.png /usr/share/backgrounds/bg_default.png diff --git a/playbook.yaml b/playbook.yaml index 3e0db30..be0aff2 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -151,6 +151,32 @@ apt: name: iputils-ping update_cache: yes + - name: Create /nix directory and set permissions + shell: + cmd: mkdir -m 0755 /nix && chown root /nix + executable: /bin/bash + - name: Download nix-installer # as https://zero-to-nix.com/start/install/ + shell: + cmd: curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix > nix-installer.sh + chdir: /home/kasm-default-profile/install_files + executable: /bin/bash + - name: Make nix-installer executable + shell: + cmd: chmod +x nix-installer.sh + chdir: /home/kasm-default-profile/install_files + executable: /bin/bash + - name: Install nix using nix-installer + shell: + cmd: ./nix-installer.sh install --no-confirm + chdir: /home/kasm-default-profile/install_files + executable: /bin/bash + register: output_of_nix_install + - name: Display stdout of nix install + debug: + msg: "{{ output_of_nix_install.stdout }}" + - name: Display stderr of nix install + debug: + msg: "{{ output_of_nix_install.stderr }}" - name: Get git version shell: git version | sed 's/[[:alpha:]|(|[:space:]]//g' register: installed_git_version