From a220ee923282a465ea94bf71d8670f34a032b2b9 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Tue, 28 Jun 2016 13:01:42 +0200 Subject: [PATCH] Use `ansible_managed`. Related to: https://github.com/debops/debops/issues/120 --- templates/etc/default/redis-server.j2 | 2 +- templates/etc/init.d/redis-sentinel.j2 | 2 +- templates/etc/init.d/service.j2 | 2 +- templates/etc/redis/redis-ansible.conf.j2 | 2 +- templates/etc/redis/sentinel-ansible.conf.j2 | 2 +- templates/usr/local/lib/redis/trigger.sh.j2 | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/etc/default/redis-server.j2 b/templates/etc/default/redis-server.j2 index e495d14..5494165 100644 --- a/templates/etc/default/redis-server.j2 +++ b/templates/etc/default/redis-server.j2 @@ -1,4 +1,4 @@ -# This file is managed by Ansible, all changes will be lost +# {{ ansible_managed }} # redis-server configure options diff --git a/templates/etc/init.d/redis-sentinel.j2 b/templates/etc/init.d/redis-sentinel.j2 index 26188ad..4e54b79 100755 --- a/templates/etc/init.d/redis-sentinel.j2 +++ b/templates/etc/init.d/redis-sentinel.j2 @@ -1,6 +1,6 @@ #!/bin/sh -# This file is managed by Ansible, all changes will be lost +# {{ ansible_managed }} ### BEGIN INIT INFO # Provides: redis-sentinel diff --git a/templates/etc/init.d/service.j2 b/templates/etc/init.d/service.j2 index ad98b49..9630a01 100755 --- a/templates/etc/init.d/service.j2 +++ b/templates/etc/init.d/service.j2 @@ -1,6 +1,6 @@ #!/bin/sh -# This file is managed by Ansible, all changes will be lost +# {{ ansible_managed }} ### BEGIN INIT INFO # Provides: redis-{{ item.name }} diff --git a/templates/etc/redis/redis-ansible.conf.j2 b/templates/etc/redis/redis-ansible.conf.j2 index 6bff130..fb5bdce 100644 --- a/templates/etc/redis/redis-ansible.conf.j2 +++ b/templates/etc/redis/redis-ansible.conf.j2 @@ -1,4 +1,4 @@ -# This file is managed by Ansible, all changes will be lost +# {{ ansible_managed }} {% set redis_tpl_redis_version = register_redis_version.stdout | replace('v=', '') -%} {# UNITS diff --git a/templates/etc/redis/sentinel-ansible.conf.j2 b/templates/etc/redis/sentinel-ansible.conf.j2 index 4cc7167..11c7912 100644 --- a/templates/etc/redis/sentinel-ansible.conf.j2 +++ b/templates/etc/redis/sentinel-ansible.conf.j2 @@ -1,4 +1,4 @@ -# This file is managed by Ansible, all changes will be lost +# {{ ansible_managed }} ############################### GENERAL ##################################### diff --git a/templates/usr/local/lib/redis/trigger.sh.j2 b/templates/usr/local/lib/redis/trigger.sh.j2 index 11da08c..9c79269 100755 --- a/templates/usr/local/lib/redis/trigger.sh.j2 +++ b/templates/usr/local/lib/redis/trigger.sh.j2 @@ -1,6 +1,6 @@ #!/bin/bash -# This file is managed by Ansible, all changes will be lost +# {{ ansible_managed }} set -e