X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc2;h=6ac51839640d6b111de332c2196a89468ff154f4;hb=3ba18a2c386a5a9962cf7b47f490a17f244a0774;hp=5fde3685ef65a65997aa6542cce52a87ae69f3cb;hpb=b714b0dde29aaf5e44d628c1d723077465e9c488;p=distro-setup diff --git a/brc2 b/brc2 index 5fde368..6ac5183 100644 --- a/brc2 +++ b/brc2 @@ -441,7 +441,7 @@ ralerts() { # remote alerts ap() { # pushd in case current directory has an ansible.cfg file pushd /a/xans >/dev/null - ansible-playbook -v -l ${1:- $(hostname -f)} site.yml + ansible-playbook -v -i ${1:- $(hostname -f)}, site.yml popd >/dev/null } aw() { @@ -2963,7 +2963,7 @@ EOF done | s cedit -e hosts-file-up /etc/hosts for host in ${hosts[@]}; do echo $host - done | cedit -e /a/bin/ds/subdir_files/.dsh/group/btrbk + done >/p/c/subdir_files/.dsh/group/btrbk ### end focus on hosts file update ### @@ -3384,8 +3384,8 @@ myprof() { pushd /home/iank/.local/share/profanity/chatlogs/iank_at_fsf.org/rooms/office_at_conference.fsf.org logs=(*) logcount=${#logs[@]} - if (( logcount > 15 )); then - i=$(( logcount - 15 )) + if (( logcount > 16 )); then + i=$(( logcount - 16 )) else i=0 fi @@ -4776,6 +4776,20 @@ opensslcertinfo() { openssl x509 -txt -in "$@" } +# dsh on btrbk hosts +dsb() { +: + } + +# dsh a file and run it +dsa() { + local ret file + if ! parallel -j 10 scp x {}:/tmp <~/.dsh/group/btrbk; then + echo parallel scp failed. dsa returning $ret + fi + dsh -g btrbk + } + export BASEFILE_DIR=/a/bin/fai-basefiles #export ANDROID_HOME=/a/opt/android-home