ansible/roles/mirrormanager/frontend2/templates/sync-crawler-logs.sh
Kevin Fenzi 4b31ac5152 ansible: Change all our group names from foo-bar to foo_bar or foo-bar-baz to foo_bar_baz
In ansible 2.8 the - character isn't supposed to be valid in group names.
While we could override this, might has well just bite the bullet and change it.
So, just switch all group names to use _ instead of -

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-20 17:38:09 +00:00

7 lines
180 B
Bash

#!/bin/bash
CRAWLERS="{% for host in groups['mm_crawler'] %} {{ host }} {% endfor %}"
for i in ${CRAWLERS}; do
rsync -aq ${i}::crawler/*log /var/log/mirrormanager/crawler/
done