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>
7 lines
180 B
Bash
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
|