use managed by ansible macro in templates

This commit is contained in:
Jörg Thalheim 2014-08-06 10:54:49 +02:00
parent a641ad7d43
commit 724acd512c
4 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
- name: resolv.conf
copy: src=resolv.conf dest=/etc/resolv.conf mode=0644 backup=yes
template: src=resolv.conf.j2 dest=/etc/resolv.conf mode=0644 backup=yes
- name: locale.conf
copy: src=locale.conf dest=/etc/locale.conf mode=0644 backup=yes
template: src=locale.conf.j2 dest=/etc/locale.conf mode=0644 backup=yes
- name: /etc/hosts
template: src=hosts.j2 dest=/etc/hosts mode=0644 backup=yes
- locale_gen: name=de_DE.UTF-8 state=present

View File

@ -1,4 +1,4 @@
# THIS FILE IS MANAGED BY ANSIBLE, DO NOT EDIT MANUALLY
# {{ ansible_managed }}
#
# /etc/hosts: static lookup table for host names
#

View File

@ -1,3 +1,5 @@
# {{ ansible_managed }}
#
LANG="de_DE.UTF-8"
LC_MESSAGES="en_DK.UTF-8"
LC_TIME="en_DK.UTF-8"

View File

@ -1,4 +1,4 @@
# THIS FILE IS MANAGED BY ANSIBLE, DO NOT EDIT MANUALLY
# {{ ansible_managed }}
#
# /etc/resolv.conf
#