I have the same issue.
fatal: [localhost] => One or more undefined variables: 'ansible_managed' is 
undefined

ansible_managed IS defined in ansible.cfg
      ansible_managed = Ansible managed: {file} modified on %Y-%m-%d 
%H:%M:%S by {uid} on {host}

I also have the additional issue in that even the directive, # {{ 
ansible_managed }}, which is specified as the first line in the first 
fragment is also not getting replaced.
I get the literal # {{ ansible_managed }} in the destination file.

RUNNING: ansible-1.9.1-1.el6.noarch on CentOS release 6.6

- JB

On Monday, June 8, 2015 at 7:05:02 AM UTC-7, Brian Coca wrote:
>
> do you have ansible_managed set in ansible.cfg? 
>
> On Sun, Jun 7, 2015 at 12:20 AM, Barry Kaplan <[email protected] 
> <javascript:>> wrote: 
> > I guess this has nothing to with assemble, as this has the same problem 
> > 
> >   copy: 
> >     content: "# {{ansible_managed}}\n\n" 
> >     dest: "{{kibana_confd_dir}}/00-kibana-header.yml" 
> > 
> > 
> > So there is something I do not understand about the scope of 
> > ansible_managed. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Ansible Project" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/edd57b27-f9ee-4ae5-b5f8-55d847e42a55%40googlegroups.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Brian Coca 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/eefc2429-7c63-47f3-b045-e22931896b27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to