# == 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
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!