Hi,
I'm trying to delegate from multiple hosts to one in a play. Basically I'm
trying to do something similar to puppet exported resources.
- hosts: slaves
tasks:
- cron:
name: '{{ansible_fqdn}}'
job: 'rsync {{ansible_fqdn}}:/srv/data
/srv/backup/{{ansible_fqdn}}/srv/data/' # not really, but works for this
example
minute: 0 # example only
hour: 0 # example only
delegate_to: master
However, after running this, only the cronjob for one slave host ends up on
the master host. I also tried to write it as a loop using with_items, with
the same results: only one cronjob.
I was also planning on creating monitoring configs on a monitoring host by
delegating from hosts that should be monitored. This would be a very
reusable pattern.
Any ideas how to solve this?
Cheers,
Paul
--
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/d23e51f2-4005-4002-9db2-1831ac1b3286%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.