Hello,

I am seeing this kind of flakiness as well on Debian Wheezy. Every other
execution of a playbook will result in copy actions marked as changed (not
even template, just copy). Same with lineinfile.

Regards
Mirko
-- 
Sent from my mobile
On Dec 2, 2014 9:39 AM, "Marc Roelofs" <[email protected]> wrote:

> Hi All,
>
> I am  experiencing something weird.
> I have a couple of template files I need to copy over to different CentOS
> versions.
> The task is simple :
> # copy file
> - name: copy my-files
>   template: src={{ item }} dest=/etc/my-destination/
>   with_items:
>   - file1
>   - file3
>   - file3
>   - file4
>   - file5
>   - file6
>   when: ansible_distribution == 'CentOS'
>
> Running this will state in green "OK" for centos 6.5 machines, but in
> Yellow changed  for CentOS 7 machines every run .
> I also have some line in file like replacements which does exactly the
> same .
> Somehow ansible changes/replaces files on Centos 7 even when they are not
> changed
> md5sum on source and destination are the same
>
> BTW When I use the copy command every time the plabook is run, it copies
> them over on both os-sses, and using template command doesn't on centos6.5
> at least
>
>
>  --
> 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/efe49666-e434-4caf-b7ab-8c8deaf2b5ea%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/efe49666-e434-4caf-b7ab-8c8deaf2b5ea%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAK8jvqzYfxfxa%3D3UsAyeHVw1qd_jaBEGY%3DXzJmRbjppd8ckeTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to