nodes_wait 60 || true # ans CMD: run CMD as greg in his project directory. ans() { setsid -w timeout 180 runuser -l greg -c "cd ~/ansible && $*" "$OUT"; recap0' task 3 "Host key checking on, with the nodes' keys in known_hosts" need "ansible.cfg doesn't turn host key checking off" 'ans ansible-config dump | grep -E "^HOST_KEY_CHECKING" | grep -q "= True"' for n in $(nodes_names); do need "greg's ~/.ssh/known_hosts has a host key for $n" "runuser -u greg -- ssh-keygen -F $n -f /home/greg/.ssh/known_hosts" done need "ansible all -m ping works with no prompt (as greg, in ~/ansible)" 'ans ansible all -m ping' rm -f "$OUT"