home lab init
This commit is contained in:
commit
7278922625
65 changed files with 27336 additions and 0 deletions
25
ansible/books/installers/uninstall-nix.yml
Normal file
25
ansible/books/installers/uninstall-nix.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
- name: Stop nix-daemon service
|
||||
ansible.builtin.systemd:
|
||||
name: nix-daemon.service
|
||||
state: stopped
|
||||
enabled: no
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Remove /nix directory
|
||||
ansible.builtin.file:
|
||||
path: /nix
|
||||
state: absent
|
||||
|
||||
- name: Remove nix entries from root's shell config
|
||||
ansible.builtin.lineinfile:
|
||||
path: /root/.bashrc
|
||||
regexp: "^.*nix.*$"
|
||||
state: absent
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Remove nix entries from root's shell profile
|
||||
ansible.builtin.lineinfile:
|
||||
path: /root/.profile
|
||||
regexp: "^.*nix.*$"
|
||||
state: absent
|
||||
ignore_errors: yes
|
||||
Loading…
Add table
Add a link
Reference in a new issue