Created attachment 1280332 [details] Screenshot of the bug Description of problem: None credential is always used when Ansible Playbook Service was ordered via button. Version-Release number of selected component (if applicable): 5.8.0.15.20170517161141_119e6fd How reproducible: Always Steps to Reproduce: 1. Enable Embedded Ansible role. 2. Wait until it will be enabled. 3. Add some repository with ansible playbook. 4. Add some ansible credentials. 5. Navigate to Services/Catalogs/Catalog Items. 6. Create ansible catalog item. 7. Navigate to Automation/Automate/Customization/Buttons. 8. Create a "VM and Instance" Custom Button pointing to an Ansible Playbook Service Dialog. 9. In the Object Details Section set the System/Process/Request set request to Order_Ansible_Playbook. 10. In the Attribute/Value Pairs section for the button set the "service_template_name" to Catalog Item name which was created in step 6. For the "host" set "vmdb_object". 11. Navigate to some VM and press the button. 12. In the service dialog pick credential for that VM. Actual results: Service was not provisioned because of incorrect credential. Expected results: Proper credential should be used when Ansible Playbook Service was ordered via button.
Lucy - Madhu recently added this support. See PR description https://github.com/ManageIQ/manageiq-content/pull/113. We are thinking it is not passing the credential args. The method would have to be changed to pick up the credentials and pass it using the dialog_options to the method. Madhu suggested: We might want to just check with Bill to ask if he needs param_credentials or just credentials.
https://github.com/ManageIQ/manageiq-content/pull/118
New commit detected on ManageIQ/manageiq-content/master: https://github.com/ManageIQ/manageiq-content/commit/bb7af8bb61df7285951f35938fc979e9ed36f32a commit bb7af8bb61df7285951f35938fc979e9ed36f32a Author: Lucy Fu <lufu> AuthorDate: Mon May 22 14:01:14 2017 -0400 Commit: Lucy Fu <lufu> CommitDate: Mon May 22 14:08:37 2017 -0400 OrderAnsiblePlaybook method should collect machine credential. OrderAnsiblePlaybook method should collect machine credential and pass it to ServiceTemplae's provision_request. https://bugzilla.redhat.com/show_bug.cgi?id=1452557 .../__methods__/order_ansible_playbook.rb | 9 ++++- .../__methods__/order_ansible_playbook_spec.rb | 47 +++++++++++++++++++++- 2 files changed, 53 insertions(+), 3 deletions(-)
Verified in 5.9.0.2.20171010190026_0413a06. Credentials are successfully used which user defines in service dialog dropdown.