Azure-Samples / ansible-playbooks

Ansible Playbook Samples for Azure
MIT License
224 stars 349 forks source link

Playbook vm_create_existingvnet_deployjavaapp.yml fails to complete (two tasks fail) #82

Open robcamer opened 4 years ago

robcamer commented 4 years ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Configure Ansible on macos, Linux, or cloudshell. (I tested macos and cloud shell)
  2. Run vm_create_existingvnet_deployjavaapp.yml with ansible-playbook
  3. FAILURE #1 at task "name: wait for the WinRM port to come online" with a time out
  4. Comment out task "name: wait for the WinRM port to come online" to try to continue (cause the ip is present)
  5. Fails at task "name: build sample app" with below error. TASK [build sample app] ***** fatal: [localhost]: FAILED! => {"changed": true, "cmd": "mvn package", "delta": "0:00:00.007666", "end": "2020-03-01 22:50:05.508385", "msg": "non-zero return code", "rc": 127, "start": "2020-03-01 22:50:05.500719", "stderr": "/bin/sh: mvn: command not found", "stderr_lines": ["/bin/sh: mvn: command not found"], "stdout": "", "stdout_lines": []}

Any log messages given by the failure

Expected/desired behavior

Playbook vm_create_existingvnet_deployjavaapp.yml runs without errors.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) macos Catalina, and Cloud Shell

Versions

Ansible 2.9.5 (latest)

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Fred-sun commented 4 years ago

@robcamer Thanks for your take the time to report this issue! I also encountered the problem you mentioned above. We will invetesting into this! Thank you very much!

Fred-sun commented 4 years ago

@haiyuazhang This should be related to the VM created, but I still know what caused it. I am looking for it. Thank you!

Fred-sun commented 4 years ago

@robcamer Thank you very much for your interest in Ansible. This repo is no longer maintained in this repository and has been migrated to https://github.com/ansible-collections/azure Please re-submit this issue in the above repository and closed this. Thank you very much!