Use true instead of yes.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
regexp: '^GRUB_TIMEOUT='
|
||||
line: 'GRUB_TIMEOUT=3'
|
||||
state: present
|
||||
backup: yes
|
||||
backup: true
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Remove Previous Run's Cron Job
|
||||
cron:
|
||||
@@ -33,22 +33,22 @@
|
||||
- name: Miner | Driver | AMDGPU | Check If GA Kernel Installed
|
||||
shell: 'uname --kernel-release | grep 5.4.0-65-generic'
|
||||
register: ga_kernel
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Check If HWE Kernel Installed
|
||||
shell: 'apt search linux-image-5.8.0-* | grep -c installed'
|
||||
register: hwe_kernel
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
#- name: Miner | Driver | AMDGPU | Check If All Driver Installed
|
||||
# shell: 'which amdgpu-uninstall'
|
||||
# register: amdgpu_install
|
||||
# ignore_errors: yes
|
||||
# ignore_errors: true
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Check If Pro Driver Installed
|
||||
shell: 'amdgpu-pro-uninstall -y'
|
||||
register: amdgpu_install
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: Miner | Driver | AMDGPU | DEBUG
|
||||
debug:
|
||||
@@ -82,7 +82,7 @@
|
||||
regexp: '^GRUB_DEFAULT='
|
||||
line: 'GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-65-generic"'
|
||||
state: present
|
||||
backup: yes
|
||||
backup: true
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Update GRUB
|
||||
@@ -131,7 +131,7 @@
|
||||
regexp: '^GRUB_DEFAULT='
|
||||
line: 'GRUB_DEFAULT=0'
|
||||
state: present
|
||||
backup: yes
|
||||
backup: true
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Update GRUB
|
||||
@@ -205,4 +205,4 @@
|
||||
- name: Miner | Driver | AMDGPU | Test Results
|
||||
debug:
|
||||
var: clinfo
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
Reference in New Issue
Block a user