Skip to content

Commit

Permalink
Fixed ansible_managed because the text is not default.
Browse files Browse the repository at this point in the history
* Would not be found be debops/debops#120
* git ls-files | xargs sed -i 's/This file is managed remotely, all changes will be lost/{{ ansible_managed }}/'
  • Loading branch information
ypid committed Aug 6, 2015
1 parent cfa2313 commit abaa10d
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion templates/etc/cron/rsnapshot-wrapper.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

# This file is managed remotely, all changes will be lost
# {{ ansible_managed }}

# Launch rsnapshot {{ item }} backups
test -x {{ ansible_local.root.lib }}/rsnapshot-cron-wrapper && {{ ansible_local.root.lib }}/rsnapshot-cron-wrapper {{ item }} || true
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/logrotate.d/rsnapshot.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is managed remotely, all changes will be lost
# {{ ansible_managed }}

/var/log/rsnapshot.log /var/log/rsnapshot/*.log {
rotate 6
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/rsnapshot/external-server/exclude.txt.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set host = item.0 %}
# This file is managed remotely, all changes will be lost
# {{ ansible_managed }}

{% if host.exclude is defined and host.exclude %}
{% set rsnapshot_tpl_exclude = host.exclude %}
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/rsnapshot/external-server/include.txt.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set host = item.0 %}
# This file is managed remotely, all changes will be lost
# {{ ansible_managed }}

{% if host.include is defined and host.include %}
{% set rsnapshot_tpl_include = host.include %}
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/rsnapshot/external-server/rsnapshot.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% else %}
{% set rsnapshot_tpl_path = '/' %}
{% endif %}
# This file is managed remotely, all changes will be lost
# {{ ansible_managed }}

#################################################
# rsnapshot.conf - rsnapshot configuration file #
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/rsnapshot/external-server/runner.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
{% set host = item.0 %}

# This file is managed remotely, all changes will be lost
# {{ ansible_managed }}

currenttype="${1:-hourly}"
prevtype="${2:-null}"
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/rsnapshot/server/exclude.txt.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set host = hostvars[item.0] %}
# This file is managed remotely, all changes will be lost
# {{ ansible_managed }}

{% if host.rsnapshot_exclude is defined and host.rsnapshot_exclude %}
{% set rsnapshot_tpl_exclude = host.rsnapshot_exclude %}
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/rsnapshot/server/include.txt.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set host = hostvars[item.0] %}
# This file is managed remotely, all changes will be lost
# {{ ansible_managed }}

{% if host.rsnapshot_include is defined and host.rsnapshot_include %}
{% set rsnapshot_tpl_include = host.rsnapshot_include %}
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/rsnapshot/server/rsnapshot.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% else %}
{% set rsnapshot_tpl_uuid = '' %}
{% endif %}
# This file is managed remotely, all changes will be lost
# {{ ansible_managed }}

#################################################
# rsnapshot.conf - rsnapshot configuration file #
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/rsnapshot/server/runner.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% set rsnapshot_tpl_host = host.ansible_fqdn %}
{% endif %}

# This file is managed remotely, all changes will be lost
# {{ ansible_managed }}

currenttype="${1:-hourly}"
prevtype="${2:-null}"
Expand Down
2 changes: 1 addition & 1 deletion templates/usr/local/lib/rsnapshot-cron-wrapper.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# This file is managed remotely, all changes will be lost
# {{ ansible_managed }}

# This script should be executed from cron with a parameter, for example:
# @hourly root rsnapshot-cron-wrapper hourly
Expand Down

0 comments on commit abaa10d

Please sign in to comment.