# == START push files of specific type to ansible conf file defined hosts
export dir=/opt/foo/bar/sfw/sh
export ext=*.sh
ls -1 $dir/$ext | { while read -r line; do \
echo START === $line ; export src_file=$line ; export dest_file=$line ;
export owner=root ; export group=root ; export mode=0770 ; \
ansible bdc -m command -a "mkdir -p $dir" ; \
ansible bdc -m copy -a "src=$src_file dest=$dest_file owner=$owner group=$group mode=$mode" ; \
echo -e "STOP === $line \n\n" ; done ; }
# == STOP push files of specific type to ansible conf file defined hosts