Add ansible_managed hint to new templates

This commit is contained in:
Alexander Grothe 2019-05-15 19:54:41 +02:00
parent de699b12b1
commit 252d6b65d1
4 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,7 @@
#!/bin/bash
#!/bin/bash
{{ ansible_managed | comment }}
videodir="{{ vdr.recdir }}"
event="$1"
device_node="$2"

View File

@ -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