I am new to Ansible - still going over the wiki and practicing using 5
KVM guests running SL6.2. Ansible 5.0 cloned from github is used.
While reviewing http://ansible.github.com/modules.html and practicing
the fetch module, I did:
[root@sl0 ~]# mkdir logtree
[root@sl0 ~]# ansible all -m fetch -a "src=/var/log/messages dest=/
root/logtree"
sl4 | FAILED >> {
"failed": true,
"md5sum": "a62b77d7291707bf19fdd40e43fae390",
"msg": "md5 mismatch"
}
sl3 | FAILED >> {
"failed": true,
"md5sum": "54c9f21817602192176b086db61bdb73",
"msg": "md5 mismatch"
}
sl1 | FAILED >> {
"failed": true,
"md5sum": "59a9739eb255d06705b2ea401ca8cc20",
"msg": "md5 mismatch"
}
sl2 | FAILED >> {
"failed": true,
"md5sum": "e4d639a1f2853d3799a9af9c026d9dcd",
"msg": "md5 mismatch"
}
Note all these FAILED and 'md5 mismatch' messages. What did I do
wrong? I did get the following:
[root@sl0 ~]# ls -lR logtree
logtree:
total 16
drwxr-xr-x 3 root root 4096 Jun 6 21:17 sl1
drwxr-xr-x 3 root root 4096 Jun 6 21:17 sl2
drwxr-xr-x 3 root root 4096 Jun 6 21:17 sl3
drwxr-xr-x 3 root root 4096 Jun 6 21:17 sl4
logtree/sl1:
total 4
drwxr-xr-x 3 root root 4096 Jun 6 21:17 var
logtree/sl1/var:
total 4
drwxr-xr-x 2 root root 4096 Jun 6 21:17 log
logtree/sl1/var/log:
total 52
-rw-r--r-- 1 root root 50065 Jun 6 21:17 messages
logtree/sl2:
total 4
drwxr-xr-x 3 root root 4096 Jun 6 21:17 var
logtree/sl2/var:
total 4
drwxr-xr-x 2 root root 4096 Jun 6 21:17 log
logtree/sl2/var/log:
total 52
-rw-r--r-- 1 root root 50063 Jun 6 21:17 messages
logtree/sl3:
total 4
drwxr-xr-x 3 root root 4096 Jun 6 21:17 var
logtree/sl3/var:
total 4
drwxr-xr-x 2 root root 4096 Jun 6 21:17 log
logtree/sl3/var/log:
total 52
-rw-r--r-- 1 root root 49954 Jun 6 21:17 messages
logtree/sl4:
total 4
drwxr-xr-x 3 root root 4096 Jun 6 21:17 var
logtree/sl4/var:
total 4
drwxr-xr-x 2 root root 4096 Jun 6 21:17 log
logtree/sl4/var/log:
total 52
-rw-r--r-- 1 root root 50065 Jun 6 21:17 messages
Regards,
Zack