roles/nginx: Add "ansible managed" string to configs

Generates a placeholder text to say that the file is managed by
ansible.
This commit is contained in:
Alan Orth 2016-06-27 17:50:49 +03:00
parent 17062c6ea7
commit b41bd432df
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# {{ ansible_managed }}
# default blank vhost # default blank vhost
# #
# clients asking for "example.com" should only get a response if we have # clients asking for "example.com" should only get a response if we have

View File

@ -1,3 +1,5 @@
# {{ ansible_managed }}
{% if ansible_distribution == 'Ubuntu' %} {% if ansible_distribution == 'Ubuntu' %}
{% if nginx_version == "stable" %} {% if nginx_version == "stable" %}
deb http://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx deb http://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx

View File

@ -1,3 +1,5 @@
# {{ ansible_managed }}
{# helper variables and per-site defaults that we can't set in role defaults #} {# helper variables and per-site defaults that we can't set in role defaults #}
{% set domain_name = item.domain_name %} {% set domain_name = item.domain_name %}
{% set domain_aliases = item.domain_aliases | default("") %} {% set domain_aliases = item.domain_aliases | default("") %}