forked from infra/ansible
* nftables: (2 commits) Cleanup nft merge. Chg osbuildapi and nft_custom_rules to use nft_table_filter. ... Signed-off-by: James Antill <james@and.org>
16 lines
333 B
Bash
Executable file
16 lines
333 B
Bash
Executable file
#! /bin/sh -e
|
|
|
|
for host in $(ansible maintainer_test --list-host | tail -n +2); do
|
|
|
|
echo " ======== Host: $host ========"
|
|
|
|
ssh "$host" dnf --refresh -y up
|
|
|
|
if [ "$(ssh $host who | wc -l)" = "1" ]; then
|
|
ansible -m reboot "$host"
|
|
ssh "$host" rkhunter --propupd || true
|
|
else
|
|
echo " ** Skipping reboot as Users on: $host"
|
|
fi
|
|
|
|
done
|