summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2020-02-22 01:32:53 +0100
committerSuren A. Chilingaryan <csa@suren.me>2020-02-22 01:32:53 +0100
commitbe8adaf1bd6d075d2fb752fee25d7448fe8e87fd (patch)
tree9b2414a85fd8e8c119bc0a8854326de47c1375c1
parent291b6e4aa17c782c812b8c23d13163ec4fed39d3 (diff)
downloadipmiboot-be8adaf1bd6d075d2fb752fee25d7448fe8e87fd.tar.gz
ipmiboot-be8adaf1bd6d075d2fb752fee25d7448fe8e87fd.tar.bz2
ipmiboot-be8adaf1bd6d075d2fb752fee25d7448fe8e87fd.tar.xz
ipmiboot-be8adaf1bd6d075d2fb752fee25d7448fe8e87fd.zip
Don't gather hardware info if we are just updating (since some IPMI devices may cause hang during the scanning with sg_inq)
-rwxr-xr-xipmi.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipmi.sh b/ipmi.sh
index 6616239..37b711c 100755
--- a/ipmi.sh
+++ b/ipmi.sh
@@ -22,7 +22,7 @@ function update {
(
cd $itm || { echo "ITM (Ansible scripts) are not found"; exit 1; }
- ansible-playbook --vault-password-file=.vault-pass -i inventories/ipe.erb -l $hosts "update.yml" "$@"
+ ANSIBLE_GATHER_SUBSET="!hardware" ansible-playbook --vault-password-file=.vault-pass -i inventories/ipe.erb -l $hosts "update.yml" "$@"
)
}