allow action to fail if file does not exist
This commit is contained in:
parent
68396b3797
commit
49bcecb027
@ -490,6 +490,7 @@ yavdr-common executes the following tasks:
|
|||||||
state: present
|
state: present
|
||||||
regexp: '^(Prompt=).*$'
|
regexp: '^(Prompt=).*$'
|
||||||
line: '\1never'
|
line: '\1never'
|
||||||
|
ignore_errors: yes
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
***** Install essential packages
|
***** Install essential packages
|
||||||
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/configure_system.yml :mkdirp yes
|
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/configure_system.yml :mkdirp yes
|
||||||
@ -3187,7 +3188,7 @@ The tool ubuntu-drivers is used to install the matching driver version for nvidi
|
|||||||
name: ubuntu-drivers-common
|
name: ubuntu-drivers-common
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: let ubuntu-drivers automatically install additional drivers
|
- name: use ubuntu-drivers to install additional drivers automatically
|
||||||
command: ubuntu-drivers --package-list /etc/yavdr/autoinstalled autoinstall
|
command: ubuntu-drivers --package-list /etc/yavdr/autoinstalled autoinstall
|
||||||
when:
|
when:
|
||||||
- ansible_virtualization_type != "virtualbox"
|
- ansible_virtualization_type != "virtualbox"
|
||||||
@ -3213,6 +3214,8 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
|
|||||||
- virtualbox-guest-dkms
|
- virtualbox-guest-dkms
|
||||||
- virtualbox-guest-x11
|
- virtualbox-guest-x11
|
||||||
- dkms
|
- dkms
|
||||||
|
|
||||||
|
# TODO: set xineliboutput as frontend
|
||||||
when:
|
when:
|
||||||
- ansible_virtualization_type == "virtualbox"
|
- ansible_virtualization_type == "virtualbox"
|
||||||
- ansible_virtualization_role == "guest"
|
- ansible_virtualization_role == "guest"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
name: ubuntu-drivers-common
|
name: ubuntu-drivers-common
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: let ubuntu-drivers automatically install additional drivers
|
- name: use ubuntu-drivers to install additional drivers automatically
|
||||||
command: ubuntu-drivers --package-list /etc/yavdr/autoinstalled autoinstall
|
command: ubuntu-drivers --package-list /etc/yavdr/autoinstalled autoinstall
|
||||||
when:
|
when:
|
||||||
- ansible_virtualization_type != "virtualbox"
|
- ansible_virtualization_type != "virtualbox"
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
- virtualbox-guest-dkms
|
- virtualbox-guest-dkms
|
||||||
- virtualbox-guest-x11
|
- virtualbox-guest-x11
|
||||||
- dkms
|
- dkms
|
||||||
|
|
||||||
|
# TODO: set xineliboutput as frontend
|
||||||
when:
|
when:
|
||||||
- ansible_virtualization_type == "virtualbox"
|
- ansible_virtualization_type == "virtualbox"
|
||||||
- ansible_virtualization_role == "guest"
|
- ansible_virtualization_role == "guest"
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
state: present
|
state: present
|
||||||
regexp: '^(Prompt=).*$'
|
regexp: '^(Prompt=).*$'
|
||||||
line: '\1never'
|
line: '\1never'
|
||||||
|
ignore_errors: yes
|
||||||
- name: apt | install basic packages
|
- name: apt | install basic packages
|
||||||
apt:
|
apt:
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user