nodes_wait 60 || true # ans CMD: run CMD as greg in his project directory. ans() { timeout 300 runuser -l greg -c "cd ~/ansible && $*" "$OUT"; unchanged node1 node2' task 3 "node2 boots to multi-user.target; target.yml changes nothing on a second run" need "systemctl get-default on node2 shows multi-user.target" '[ "$(in_node node2 systemctl get-default)" = multi-user.target ]' need "/home/greg/ansible/target.yml exists" '[ -f /home/greg/ansible/target.yml ]' need "ansible-playbook target.yml reports changed=0 on node2" 'ans ansible-playbook target.yml >"$OUT"; unchanged node2' rm -f "$OUT"