X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc;h=5ecfd817aa6d0a8072562a5e4b31f191d26a8e57;hb=f9ccde727d3471c99b909a528aa7168281368084;hp=84386907d92e1f4f53683068ac70ec77d73d48c5;hpb=77f3e699ab79d597d22fc052ed03d25cf0ad02da;p=distro-setup diff --git a/brc b/brc index 8438690..5ecfd81 100644 --- a/brc +++ b/brc @@ -331,14 +331,19 @@ anki() { ap() { # pushd in case current directory has an ansible.cfg file - pushd /a/xans + pushd /a/xans >/dev/null ansible-playbook -v -l ${1:- $(hostname -f)} site.yml - popd + popd >/dev/null } aw() { - pushd /a/work/ansible-configs + pushd /a/work/ansible-configs >/dev/null time ansible-playbook -v -i inventory adhoc.yml "$@" - popd + popd >/dev/null +} +ad() { + pushd /a/bin/distro-setup/a >/dev/null + ansible-playbook site.yml + popd >/dev/null } astudio() { @@ -378,12 +383,21 @@ bigclock() { } bpull() { + [[ $1 ]] || return 1 + c / + # run latest + install-my-scripts + switch-mail-host $1 $HOSTNAME +} +bpush() { + [[ $1 ]] || return 1 c / # run latest install-my-scripts - switch-mail-host $1 $HOSTNAMEs + switch-mail-host $HOSTNAME $1 } + btc() { local f=/etc/bitcoin/bitcoin.conf # importprivkey will timeout if using the default of 15 mins.