ansible-playbook playbook.yml
给出:
PLAY [My Playbook] **************************************************************************************************
TASK [Gathering Facts] ***************************************************************************************************************
fatal: [playbook.yml]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname playbook.yml: nodename nor servname provided, or not known", "unreachable": true}
PLAY RECAP ***************************************************************************************************************************
playbook.yml : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0