diff --git a/tasks/main.yml b/tasks/main.yml index 7c869aa..c369dc9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -39,6 +39,17 @@ group=0 mode=0644 +- name: Install .gitattributes configuration + tags: etckeeper + become: true + template: + src=etckeeper.gitattributes.j2 + dest=/etc/.gitattributes + owner=0 + group=0 + mode=0644 + when: etckeeper_vcs == 'git' + - name: Install etckeeper packages tags: etckeeper diff --git a/templates/etckeeper.gitattributes.j2 b/templates/etckeeper.gitattributes.j2 new file mode 100644 index 0000000..1b59985 --- /dev/null +++ b/templates/etckeeper.gitattributes.j2 @@ -0,0 +1,20 @@ +{% if util_template_use_cow %} +# -------------------- +# ( Managed by Ansible ) +# -------------------- +# o . . . +# o . . . ` , +# o .; . : .' : : : . +# o i..`: i` i.i.,i i . +# o `,--.|i |i|ii|ii|i: +# UooU\.'@@@@@@`.||' +# \__/(@@@@@@@@@@)' +# (@@@@@@@@) +# `YY~~~~YY' +# || || +{% else %} +# {{ ansible_managed }} +{% endif %} + +# Usually there is no need to diff backup files. +*- -diff