From 252d6b65d1cfa655fb295dcfe37e6db03a3be9c6 Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Wed, 15 May 2019 19:54:41 +0200 Subject: [PATCH] Add ansible_managed hint to new templates --- Manual.org | 4 ++++ roles/yavdr-desktop/templates/udiskie/config.yml.j2 | 1 + .../templates/udiskie/udiskie_vdr_mount_helper.j2 | 2 ++ roles/yavdr-desktop/templates/udiskie/umount_all.j2 | 1 + 4 files changed, 8 insertions(+) diff --git a/Manual.org b/Manual.org index be8d7ca..6135388 100644 --- a/Manual.org +++ b/Manual.org @@ -5286,6 +5286,7 @@ udiskie & **** udiskie ***** config.yml #+BEGIN_SRC shell :tangle roles/yavdr-desktop/templates/udiskie/config.yml.j2 :mkdirp yes :shebang #!/bin/bash +{{ ansible_managed | comment }} program_options: tray: false # [bool] Enable the tray icon. "auto" menu: flat # ["flat" | "nested"] Set the @@ -5313,6 +5314,8 @@ notifications: ***** mount helper script #+BEGIN_SRC shell :tangle roles/yavdr-desktop/templates/udiskie/udiskie_vdr_mount_helper.j2 :mkdirp yes :shebang #!/bin/bash #!/bin/bash +{{ ansible_managed | comment }} + videodir="{{ vdr.recdir }}" event="$1" device_node="$2" @@ -5360,6 +5363,7 @@ esac ***** udiskie snippet for commands.conf #+BEGIN_SRC shell :tangle roles/yavdr-desktop/templates/udiskie/umount_all.j2 :mkdirp yes :shebang #!/bin/bash +{{ ansible_managed | comment }} {{ "Safely remove usb mass storage" | translate }} : echo 'svdrpsend mesg "$(udiskie-umount -a 2>&1 | grep -o "Error unmounting.*")"' | at now #+END_SRC diff --git a/roles/yavdr-desktop/templates/udiskie/config.yml.j2 b/roles/yavdr-desktop/templates/udiskie/config.yml.j2 index a436f55..0572b42 100755 --- a/roles/yavdr-desktop/templates/udiskie/config.yml.j2 +++ b/roles/yavdr-desktop/templates/udiskie/config.yml.j2 @@ -1,4 +1,5 @@ #!/bin/bash +{{ ansible_managed | comment }} program_options: tray: false # [bool] Enable the tray icon. "auto" menu: flat # ["flat" | "nested"] Set the diff --git a/roles/yavdr-desktop/templates/udiskie/udiskie_vdr_mount_helper.j2 b/roles/yavdr-desktop/templates/udiskie/udiskie_vdr_mount_helper.j2 index 766b780..1f2909c 100755 --- a/roles/yavdr-desktop/templates/udiskie/udiskie_vdr_mount_helper.j2 +++ b/roles/yavdr-desktop/templates/udiskie/udiskie_vdr_mount_helper.j2 @@ -1,5 +1,7 @@ #!/bin/bash #!/bin/bash +{{ ansible_managed | comment }} + videodir="{{ vdr.recdir }}" event="$1" device_node="$2" diff --git a/roles/yavdr-desktop/templates/udiskie/umount_all.j2 b/roles/yavdr-desktop/templates/udiskie/umount_all.j2 index 6f3da33..eab1e28 100755 --- a/roles/yavdr-desktop/templates/udiskie/umount_all.j2 +++ b/roles/yavdr-desktop/templates/udiskie/umount_all.j2 @@ -1,2 +1,3 @@ #!/bin/bash +{{ ansible_managed | comment }} {{ "Safely remove usb mass storage" | translate }} : echo 'svdrpsend mesg "$(udiskie-umount -a 2>&1 | grep -o "Error unmounting.*")"' | at now