{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/46589","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/46589/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/46589/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/46589/events","html_url":"https://github.com/ansible/ansible/issues/46589","id":367522288,"node_id":"MDU6SXNzdWUzNjc1MjIyODg=","number":46589,"title":"terraform plan","user":{"login":"nik786","id":9930992,"node_id":"MDQ6VXNlcjk5MzA5OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/9930992?v=4","gravatar_id":"","url":"https://api.github.com/users/nik786","html_url":"https://github.com/nik786","followers_url":"https://api.github.com/users/nik786/followers","following_url":"https://api.github.com/users/nik786/following{/other_user}","gists_url":"https://api.github.com/users/nik786/gists{/gist_id}","starred_url":"https://api.github.com/users/nik786/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik786/subscriptions","organizations_url":"https://api.github.com/users/nik786/orgs","repos_url":"https://api.github.com/users/nik786/repos","events_url":"https://api.github.com/users/nik786/events{/privacy}","received_events_url":"https://api.github.com/users/nik786/received_events","type":"User","site_admin":false},"labels":[{"id":1043397454,"node_id":"MDU6TGFiZWwxMDQzMzk3NDU0","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.8","name":"affects_2.8","color":"ededed","default":false},{"id":54811101,"node_id":"MDU6TGFiZWw1NDgxMTEwMQ==","url":"https://api.github.com/repos/ansible/ansible/labels/needs_info","name":"needs_info","color":"eb6420","default":false},{"id":572345061,"node_id":"MDU6TGFiZWw1NzIzNDUwNjE=","url":"https://api.github.com/repos/ansible/ansible/labels/needs_template","name":"needs_template","color":"f9d0c4","default":false},{"id":503572087,"node_id":"MDU6TGFiZWw1MDM1NzIwODc=","url":"https://api.github.com/repos/ansible/ansible/labels/needs_triage","name":"needs_triage","color":"0e8a16","default":false},{"id":636352796,"node_id":"MDU6TGFiZWw2MzYzNTI3OTY=","url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-07T05:14:23Z","updated_at":"2018-10-07T05:34:48Z","closed_at":null,"author_association":"NONE","body":"terraform plan is nt able to print the output from terraform module\r\n\r\n- name:\r\n  terraform:\r\n    project_path: \"{{ project_dir }}\"\r\n    plan_file: \"{{ tf_plan_file }}\"\r\n    lock: true\r\n    state: planned\r\n    force_init: true\r\n    variables:\r\n      bucket_name: tera-artifactory\r\n  register: tf_run\r\n#- debug: var={{ tf_run.outputs.bukkit_arn.value }}\r\n- debug: var=tf_run\r\n- debug: var=tf_run.stdout\r\n\r\n\r\nanyhelp will be appreciated..."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/427627381","html_url":"https://github.com/ansible/ansible/issues/46589#issuecomment-427627381","issue_url":"https://api.github.com/repos/ansible/ansible/issues/46589","id":427627381,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzYyNzM4MQ==","user":{"login":"nik786","id":9930992,"node_id":"MDQ6VXNlcjk5MzA5OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/9930992?v=4","gravatar_id":"","url":"https://api.github.com/users/nik786","html_url":"https://github.com/nik786","followers_url":"https://api.github.com/users/nik786/followers","following_url":"https://api.github.com/users/nik786/following{/other_user}","gists_url":"https://api.github.com/users/nik786/gists{/gist_id}","starred_url":"https://api.github.com/users/nik786/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik786/subscriptions","organizations_url":"https://api.github.com/users/nik786/orgs","repos_url":"https://api.github.com/users/nik786/repos","events_url":"https://api.github.com/users/nik786/events{/privacy}","received_events_url":"https://api.github.com/users/nik786/received_events","type":"User","site_admin":false},"created_at":"2018-10-07T05:34:48Z","updated_at":"2018-10-07T05:34:48Z","author_association":"NONE","body":"Issue Type:\r\nmotief is to print output of terraform plan by ansible terraform module which is not happening\r\n im posting the output\r\n\r\nTASK [terraform-aws-role : debug] *********************************************************************************************\r\nok: [cloud-controller] => {\r\n    \"tf_run\": {\r\n        \"changed\": false, \r\n        \"command\": \"/usr/local/bin/terraform -lock=true /etc/ansible/scripts/terraform-stack/aws/tera-project/tfplan\", \r\n        \"failed\": false, \r\n        \"outputs\": {\r\n            \"bucket_arn\": {\r\n                \"sensitive\": false, \r\n                \"type\": \"string\", \r\n                \"value\": \"arn:aws:s3:::tera-artifactory\"\r\n            }\r\n        }, \r\n        \"state\": \"planned\", \r\n        \"stderr\": \"\", \r\n        \"stderr_lines\": [], \r\n        \"stdout\": \"\", \r\n        \"stdout_lines\": [], \r\n        \"workspace\": \"default\"\r\n    }\r\n}\r\n\r\n\r\n\r\nVersions:\r\nansible --version\r\nansible 2.6.4\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = [u'/usr/local/go/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/lib/python2.7/dist-packages/ansible\r\n  executable location = /usr/bin/ansible\r\n  python version = 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]\r\n\r\nterraform version\r\nTerraform v0.11.8\r\n+ provider.aws v1.39.0\r\n\r\ncomponent name:\r\nterraform\r\nKindly help\r\n"}}
{"actor":{"display_login":"nik786"}}