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() {
}
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.