From 85de5f119e9e024f8721b7329034428dad3da93f Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Sat, 11 May 2019 16:38:38 +0200 Subject: [PATCH] prevent failure if ubuntu-drivers autoinstall did not create a file --- Manual.org | 5 +++++ roles/yavdr-common/tasks/create_directories.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Manual.org b/Manual.org index 9512760..c630038 100644 --- a/Manual.org +++ b/Manual.org @@ -801,6 +801,11 @@ yavdr-common executes the following tasks: state: directory mode: 0755 +- name: touch /etc/yavdr/autoinstalled (this file must exist) + file: + path: /etc/yavdr/autoinstalled + state: touch + - name: create media directories file: dest: '{{ item.value }}' diff --git a/roles/yavdr-common/tasks/create_directories.yml b/roles/yavdr-common/tasks/create_directories.yml index ba5ac1f..c5e0adb 100644 --- a/roles/yavdr-common/tasks/create_directories.yml +++ b/roles/yavdr-common/tasks/create_directories.yml @@ -4,6 +4,11 @@ state: directory mode: 0755 +- name: touch /etc/yavdr/autoinstalled (this file must exist) + file: + path: /etc/yavdr/autoinstalled + state: touch + - name: create media directories file: dest: '{{ item.value }}'