GoogleCloudPlatform / compute-video-demo-ansible

Supporting details for the Using Ansible on Compute Engine video demo
http://googlecloudplatform.github.io/compute-video-demo-ansible/
Apache License 2.0
123 stars 68 forks source link

skipping: no hosts matched [WARNING]: Could not match supplied host pattern, ignoring: gce_instances_ips #6

Open svanschalkwyk opened 7 years ago

svanschalkwyk commented 7 years ago

skipping: no hosts matched [WARNING]: Could not match supplied host pattern, ignoring: gce_instances_ips

Any idea why this is ? Seems as if this should be correct, as the IP addresses have not been supplied by GCP yet?

svanschalkwyk commented 7 years ago

< PLAY [Create Compute Engine instances] >

    \   ^__^
     \  (oo)\_______
        (__)\       )\/\
            ||----w |
            ||     ||

skipping: no hosts matched [WARNING]: Could not match supplied host pattern, ignoring: gce_instances_ips

gsahaya commented 6 years ago

Getting the below error. Can you please help?

god441347@vgstest1:~/compute-video-demo-ansible$ ansible-playbook site.yml [DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. PLAY [Create Compute Engine instances] * TASK [Bring up the instances in the first zone] **** fatal: [127.0.0.1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\ n@ WARNING: UNPROTECTED PRIVATE KEY FILE! @\r\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\nPermissions 0755 for '/home/god441347 /.ssh/google_compute_engine' are too open.\r\nIt is required that your private key files are NOT accessible by others.\r\nThis private key will be ignored.\r\nLoad key \"/home/god441347/.ssh/google_compute_engine\": bad permissions\r\nPermission denied (publickey).\r\n", "unreachable": true} to retry, use: --limit @/home/god441347/compute-video-demo-ansible/site.retry PLAY RECAP ***** 127.0.0.1 : ok=0 changed=0 unreachable=1 failed=0