Hi,
I dont know whenether im going nuts or just havent RTFM enough, but the following is my issue;
When using ansibile from command-line to copy an file it works perfect;
# ansible test.domain.local -m copy -a "src=/mgmt/cmdb/shared/etc/exim.conf dest=/etc/exim.conf owner=root group=root mode=0644"
test.domain.locall | success >> {
"changed": true,
"gid": 0,
"group": "root",
"mode": "0644",
"owner": "root",
"path": "/etc/exim.conf",
"size": 2660,
"state": "file",
"uid": 0
}
Every change i write to the file is being updated to the remote host and its being updated vice versa, etc.
However; when i use it in an playbook;
"
---
- hosts: test.domain.local
user: root
tasks:
- name: exim
copy: src=/mgmt/cmdb/shared/etc/exim.conf dest=/etc/exim.conf owner=root group=root mode=0644
"
The playbook-run comes back "ok"
PLAY RECAP ********************************************************************
test.domain.local : ok=2 changed=0 unreachable=0 failed=0
But the file isnt being update, whenether i remove it or.. well.. do anything with it. It just ALWAYS comes back with "ok".
What am i missing or not seeing here?
Thanks alot in advance for your support and understanding,
Kind regards,
Gijs