From 49bcecb0272f8dbe90abdf10aba3debe7af63fa4 Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Wed, 22 Nov 2017 10:56:21 +0100 Subject: [PATCH] allow action to fail if file does not exist --- Manual.org | 5 ++++- roles/autoinstall-ubuntu-drivers/tasks/main.yml | 2 +- roles/autoinstall-virtualbox-guest/tasks/main.yml | 2 ++ roles/yavdr-common/tasks/configure_system.yml | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Manual.org b/Manual.org index 9ca56cf..78f70f4 100644 --- a/Manual.org +++ b/Manual.org @@ -490,6 +490,7 @@ yavdr-common executes the following tasks: state: present regexp: '^(Prompt=).*$' line: '\1never' + ignore_errors: yes #+END_SRC ***** Install essential packages #+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 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" @@ -3213,6 +3214,8 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04 - virtualbox-guest-dkms - virtualbox-guest-x11 - dkms + + # TODO: set xineliboutput as frontend when: - ansible_virtualization_type == "virtualbox" - ansible_virtualization_role == "guest" diff --git a/roles/autoinstall-ubuntu-drivers/tasks/main.yml b/roles/autoinstall-ubuntu-drivers/tasks/main.yml index daec913..dac22ae 100644 --- a/roles/autoinstall-ubuntu-drivers/tasks/main.yml +++ b/roles/autoinstall-ubuntu-drivers/tasks/main.yml @@ -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" diff --git a/roles/autoinstall-virtualbox-guest/tasks/main.yml b/roles/autoinstall-virtualbox-guest/tasks/main.yml index e7733af..aeec87d 100644 --- a/roles/autoinstall-virtualbox-guest/tasks/main.yml +++ b/roles/autoinstall-virtualbox-guest/tasks/main.yml @@ -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" diff --git a/roles/yavdr-common/tasks/configure_system.yml b/roles/yavdr-common/tasks/configure_system.yml index 5c159ef..9e013e4 100644 --- a/roles/yavdr-common/tasks/configure_system.yml +++ b/roles/yavdr-common/tasks/configure_system.yml @@ -24,6 +24,7 @@ state: present regexp: '^(Prompt=).*$' line: '\1never' + ignore_errors: yes - name: apt | install basic packages apt: name: '{{ item }}'