Add purge to autoremove so that unused config files also get removed.
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
amdgpu_cron_cmd: "{{ root_home.stdout }}/scm.sh"
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Install Dependencies
|
||||
package:
|
||||
name:
|
||||
- dkms
|
||||
package:
|
||||
name:
|
||||
- dkms
|
||||
- mesa-common-dev
|
||||
- clinfo
|
||||
state: present
|
||||
@@ -62,16 +62,16 @@
|
||||
|
||||
## Step 1/3: Get Correct Kernel ##
|
||||
- name: Miner | Driver | AMDGPU | Install Recommended GA Kernel
|
||||
shell: apt install --install-recommends linux-generic
|
||||
shell: apt install --install-recommends linux-generic
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Install Specific GA Kernel For Booting
|
||||
package:
|
||||
name:
|
||||
- linux-headers-5.4.0-65
|
||||
- linux-headers-5.4.0-65-generic
|
||||
- linux-headers-generic
|
||||
- linux-image-generic
|
||||
name:
|
||||
- linux-headers-5.4.0-65
|
||||
- linux-headers-5.4.0-65-generic
|
||||
- linux-headers-generic
|
||||
- linux-image-generic
|
||||
- linux-modules-extra-5.4.0-65-generic
|
||||
state: present
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed
|
||||
@@ -121,10 +121,10 @@
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Update + Clean System
|
||||
shell: "apt update; apt dist-upgrade -y; apt autoremove -y"
|
||||
shell: "apt update; apt dist-upgrade -y; apt autoremove --purge -y"
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||
|
||||
# This is to ensure we can test adding `apt install --install-recommends linux-generic` later
|
||||
# This is to ensure we can test adding `apt install --install-recommends linux-generic` later
|
||||
- name: Miner | Driver | AMDGPU | Boot Default Kernel
|
||||
lineinfile:
|
||||
path: /etc/default/grub
|
||||
|
Reference in New Issue
Block a user