allow action to fail if file does not exist

This commit is contained in:
Alexander Grothe
2017-11-22 10:56:21 +01:00
parent 68396b3797
commit 49bcecb027
4 changed files with 8 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
name: ubuntu-drivers-common
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
when:
- ansible_virtualization_type != "virtualbox"

View File

@@ -11,6 +11,8 @@
- virtualbox-guest-dkms
- virtualbox-guest-x11
- dkms
# TODO: set xineliboutput as frontend
when:
- ansible_virtualization_type == "virtualbox"
- ansible_virtualization_role == "guest"

View File

@@ -24,6 +24,7 @@
state: present
regexp: '^(Prompt=).*$'
line: '\1never'
ignore_errors: yes
- name: apt | install basic packages
apt:
name: '{{ item }}'