header eingebaut (#149)

header eingebaut

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#149
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
Michael Grote 2021-07-10 12:51:41 +02:00
parent 16b72e3dfa
commit 8dcd648f0b
18 changed files with 18 additions and 3 deletions

View file

@ -1,3 +1,4 @@
{{ file_header | default () }}
# This file contains confidential data and should be protected with file # This file contains confidential data and should be protected with file
# permissions from being read by untrusted users. # permissions from being read by untrusted users.
# #

View file

@ -1,2 +1,3 @@
{{ file_header | default () }}
Acquire::http::proxy "http://{{ manage_sources_apt_proxy_server | default() }}:{{ manage_sources_apt_proxy_port | default() }}"; Acquire::http::proxy "http://{{ manage_sources_apt_proxy_server | default() }}:{{ manage_sources_apt_proxy_port | default() }}";
Acquire::https::proxy "http://{{ manage_sources_apt_proxy_server | default() }}:{{ manage_sources_apt_proxy_port | default() }}"; Acquire::https::proxy "http://{{ manage_sources_apt_proxy_server | default() }}:{{ manage_sources_apt_proxy_port | default() }}";

View file

@ -1,3 +1,4 @@
{{ file_header | default () }}
{{ bdfr_log_file }} { {{ bdfr_log_file }} {
missingok missingok
nocreate nocreate

View file

@ -1,3 +1,4 @@
{{ file_header | default () }}
/var/log/cv4pve-autosnap.log { /var/log/cv4pve-autosnap.log {
su root root su root root
create 0640 root root create 0640 root root

View file

@ -1,3 +1,4 @@
{{ file_header | default () }}
/var/log/rasdaemon.log { /var/log/rasdaemon.log {
su root root su root root
create 0640 root root create 0640 root root

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
{{ file_header | default () }}
echo "--------------------------------------------------------------------------------" echo "--------------------------------------------------------------------------------"
echo " This system is managed by Ansible " echo " This system is managed by Ansible "
echo "--------------------------------------------------------------------------------" echo "--------------------------------------------------------------------------------"

View file

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
{{ file_header | default () }}
/usr/games/fortune -s /usr/games/fortune -s
echo "--------------------------------------------------------------------------------" echo "--------------------------------------------------------------------------------"

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
{{ file_header | default () }}
# NAME: now # NAME: now
# PATH: $HOME/bin # PATH: $HOME/bin
# DESC: Display current weather, calendar and time # DESC: Display current weather, calendar and time

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
{{ file_header | default () }}
echo "FQDN: {{ ansible_fqdn }}" echo "FQDN: {{ ansible_fqdn }}"
echo "Distro: {{ ansible_distribution }} {{ ansible_distribution_version }} {{ ansible_distribution_release }}" echo "Distro: {{ ansible_distribution }} {{ ansible_distribution_version }} {{ ansible_distribution_release }}"
echo "Virtual: {{ 'YES' if ansible_virtualization_role == 'guest' else 'NO' }}" echo "Virtual: {{ 'YES' if ansible_virtualization_role == 'guest' else 'NO' }}"

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
{{ file_header | default () }}
stamp="/var/lib/update-notifier/updates-available" stamp="/var/lib/update-notifier/updates-available"
([ ! -r "$stamp" ] || [ -n "$(awk '/^0/{print $1;}' "$stamp")" ]) || cat "$stamp" ([ ! -r "$stamp" ] || [ -n "$(awk '/^0/{print $1;}' "$stamp")" ]) || cat "$stamp"

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
{{ file_header | default () }}
if [ -x /usr/lib/update-notifier/update-motd-reboot-required ]; then if [ -x /usr/lib/update-notifier/update-motd-reboot-required ]; then
exec /usr/lib/update-notifier/update-motd-reboot-required exec /usr/lib/update-notifier/update-motd-reboot-required
fi fi

View file

@ -1,3 +1,4 @@
{{ file_header | default () }}
{% for section,directives in munin_node_config.items() | list %} {% for section,directives in munin_node_config.items() | list %}
[{{section}}] [{{section}}]
{% for name,val in directives.items() | list %} {% for name,val in directives.items() | list %}

View file

@ -1,3 +1,4 @@
{{ file_header | default () }}
/var/log/chrony/*.log { /var/log/chrony/*.log {
missingok missingok
nocreate nocreate

View file

@ -1,3 +1,4 @@
{{ file_header | default () }}
/var/log/chrony/*.log { /var/log/chrony/*.log {
missingok missingok
nocreate nocreate

View file

@ -1,3 +1,4 @@
{{ file_header | default () }}
/var/log/restic.log { /var/log/restic.log {
su root root su root root
create 0640 root root create 0640 root root

View file

@ -1,2 +1,3 @@
{{ file_header | default () }}
user={{ restic_mount_user }} user={{ restic_mount_user }}
password={{ restic_mount_password }} password={{ restic_mount_password }}

View file

@ -1,3 +1,4 @@
{{ file_header | default () }}
{ {
"backup_device_uuid" : "9b924961-0fd4-423f-b440-f2f3d1fa46d8", "backup_device_uuid" : "9b924961-0fd4-423f-b440-f2f3d1fa46d8",
"parent_device_uuid" : "", "parent_device_uuid" : "",

View file

@ -1,3 +1,4 @@
{{ file_header | default () }}
/var/log/sanoid-cron.log { /var/log/sanoid-cron.log {
su root root su root root
create 0644 root root create 0644 root root