{"action":"closed","issue":{"url":"https://api.github.com/repos/dkorn/manageiq-ansible-module/issues/43","repository_url":"https://api.github.com/repos/dkorn/manageiq-ansible-module","labels_url":"https://api.github.com/repos/dkorn/manageiq-ansible-module/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/dkorn/manageiq-ansible-module/issues/43/comments","events_url":"https://api.github.com/repos/dkorn/manageiq-ansible-module/issues/43/events","html_url":"https://github.com/dkorn/manageiq-ansible-module/issues/43","id":194820679,"number":43,"title":"Provider API Token doesn't get passed successfully with an Ansible script?","user":{"login":"pavelzag","id":526113,"avatar_url":"https://avatars.githubusercontent.com/u/526113?v=3","gravatar_id":"","url":"https://api.github.com/users/pavelzag","html_url":"https://github.com/pavelzag","followers_url":"https://api.github.com/users/pavelzag/followers","following_url":"https://api.github.com/users/pavelzag/following{/other_user}","gists_url":"https://api.github.com/users/pavelzag/gists{/gist_id}","starred_url":"https://api.github.com/users/pavelzag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavelzag/subscriptions","organizations_url":"https://api.github.com/users/pavelzag/orgs","repos_url":"https://api.github.com/users/pavelzag/repos","events_url":"https://api.github.com/users/pavelzag/events{/privacy}","received_events_url":"https://api.github.com/users/pavelzag/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-11T08:53:17Z","updated_at":"2016-12-11T11:36:49Z","closed_at":"2016-12-11T11:36:49Z","body":"I noticed that when attempting to add a Provider I can't get the token added with the rest of the Provider's details.\r\nI am attaching you my yaml, please check locally to see if it works for you. I can see the provider added but nothing gets populated under the Provider because the Token doesn't get in.\r\nI see no error in Ansible reply as well.\r\n\r\nYAML:\r\n\r\n```\r\n---\r\n- hosts: localhost\r\n\r\n  tasks:\r\n  - name: Add Openshift Containers Provider to ManageIQ\r\n    manageiq_provider:\r\n      name: 'Openshift 3'\r\n      provider_type: 'openshift-origin'\r\n      state: 'present'\r\n      provider_api_hostname: <My Hostname>\r\n      provider_api_port: '8443'\r\n      provider_api_auth_token: <Token>\r\n      metrics: True\r\n      hawkular_hostname: <My Hawkular Hostname>\r\n      hawkular_port: '443'\r\n      miq_url: <My MIQ URL>\r\n      miq_username: <My User>\r\n      miq_password: <My Pass>\r\n      verify_ssl: False\r\n    register: result\r\n\r\n  - debug: var=result\r\n```\r\n\r\nHere's the reply I get:\r\n\r\n```\r\n[pavel@hades manageiq_ansible_module]$ ansible-playbook add_provider_test.yml \r\n [WARNING]: provided hosts list is empty, only localhost is available\r\n\r\n\r\nPLAY [localhost] ***************************************************************\r\n\r\nTASK [setup] *******************************************************************\r\nok: [localhost]\r\n\r\nTASK [Add Openshift Containers Provider to ManageIQ] ***************************\r\nchanged: [localhost]\r\n\r\nTASK [debug] *******************************************************************\r\nok: [localhost] => {\r\n    \"result\": {\r\n        \"changed\": true, \r\n        \"msg\": \"Successfuly added Openshift 3 provider\", \r\n        \"provider_id\": 5\r\n    }\r\n}\r\n\r\nPLAY RECAP *********************************************************************\r\nlocalhost                  : ok=3    changed=1    unreachable=0    failed=0   \r\n\r\n```"}}
{"actor":{"display_login":"pavelzag"}}