adilsonrapozojr
10/11/2019 - 5:42 AM

heavy

heavy() {
NODES=$1
shift
SCRIPT=$1
shift

ansible "$NODES" -m shell -b --become-user {{instance}} -a ". ~/sqllib/db2profile && db2 +o connect to {{dbname}} && echo \"$(<$SCRIPT)\" | db2 +p -tv" $@
ansible "$NODES" -m shell -b --become-user {{instance}} -a ". ~/sqllib/db2profile && db2 +o connect to {{dbname}} && echo \"`cat $SCRIPT`\" | db2 +p -tv" $@
  
}