{"action":"created","issue":{"url":"https://api.github.com/repos/atplanet/ansible-auto-scaling-tutorial/issues/7","repository_url":"https://api.github.com/repos/atplanet/ansible-auto-scaling-tutorial","labels_url":"https://api.github.com/repos/atplanet/ansible-auto-scaling-tutorial/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/atplanet/ansible-auto-scaling-tutorial/issues/7/comments","events_url":"https://api.github.com/repos/atplanet/ansible-auto-scaling-tutorial/issues/7/events","html_url":"https://github.com/atplanet/ansible-auto-scaling-tutorial/issues/7","id":141290892,"number":7,"title":"failure with lc_find ","user":{"login":"dhgrainger","id":6352654,"avatar_url":"https://avatars.githubusercontent.com/u/6352654?v=3","gravatar_id":"","url":"https://api.github.com/users/dhgrainger","html_url":"https://github.com/dhgrainger","followers_url":"https://api.github.com/users/dhgrainger/followers","following_url":"https://api.github.com/users/dhgrainger/following{/other_user}","gists_url":"https://api.github.com/users/dhgrainger/gists{/gist_id}","starred_url":"https://api.github.com/users/dhgrainger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhgrainger/subscriptions","organizations_url":"https://api.github.com/users/dhgrainger/orgs","repos_url":"https://api.github.com/users/dhgrainger/repos","events_url":"https://api.github.com/users/dhgrainger/events{/privacy}","received_events_url":"https://api.github.com/users/dhgrainger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-16T14:26:45Z","updated_at":"2016-05-12T12:43:19Z","closed_at":null,"body":"First of all I really like this playbook, it's a really great tutorial. The one issue I have is when I try to run the custom module lc_find. I am passing the \r\n\r\nESTABLISH LOCAL CONNECTION FOR USER: douggrainger\r\nlocalhost EXEC ( umask 22 && mkdir -p \"$( echo $HOME/.ansible/tmp/ansible-tmp-1458078036.19-221905393396085 )\" && echo \"$( echo $HOME/.ansible/tmp/ansible-tmp-1458078036.19-221905393396085 )\" )\r\nlocalhost PUT /var/folders/y_/nxy2vpcs3d5_jztrfg2sn8t00000gn/T/tmpBgwMXq TO /Users/douggrainger/.ansible/tmp/ansible-tmp-1458078036.19-221905393396085/lc_find\r\nlocalhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /Users/douggrainger/.ansible/tmp/ansible-tmp-1458078036.19-221905393396085/lc_find; rm -rf \"/Users/douggrainger/.ansible/tmp/ansible-tmp-1458078036.19-221905393396085/\" > /dev/null 2>&1\r\nfatal: [172.16.1.44 -> localhost]: FAILED! => {\"changed\": false, \"failed\": true, \"invocation\": {\"module_name\": \"lc_find\"}, \"module_stderr\": \"\\nUnknown output type: None\\nTraceback (most recent call last):\\n  File \\\"/Users/douggrainger/.ansible/tmp/ansible-tmp-1458078036.19-221905393396085/lc_find\\\", line 2219, in <module>\\n    main()\\n  File \\\"/Users/douggrainger/.ansible/tmp/ansible-tmp-1458078036.19-221905393396085/lc_find\\\", line 31, in main\\n    lc_cmd_result = subprocess.check_output([\\\"aws\\\", \\\"autoscaling\\\", \\\"describe-launch-configurations\\\", \\\"--region\\\",  module.params.get('region')])\\n  File \\\"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py\\\", line 573, in check_output\\n    raise CalledProcessError(retcode, cmd, output=output)\\nsubprocess.CalledProcessError: Command '['aws', 'autoscaling', 'describe-launch-configurations', '--region', 'us-east-1']' returned non-zero exit status 255\\n\", \"module_stdout\": \"\", \"msg\": \"MODULE FAILURE\", \"parsed\": false}.\r\n\r\nThese are the parameters i'm passing \r\n\r\n- name: Find Old Launch Configuration\r\n  sudo: false\r\n  local_action:\r\n    module: lc_find\r\n    region: 'us-east-1'\r\n    name_regex: \"{{rails_env}}-{{role}}-lc-*\"\r\n    sort: yes\r\n    sort_end: -2\r\n  register: old_lc_result\r\n"},"comment":{"url":"https://api.github.com/repos/atplanet/ansible-auto-scaling-tutorial/issues/comments/218745402","html_url":"https://github.com/atplanet/ansible-auto-scaling-tutorial/issues/7#issuecomment-218745402","issue_url":"https://api.github.com/repos/atplanet/ansible-auto-scaling-tutorial/issues/7","id":218745402,"user":{"login":"manicminer","id":251987,"avatar_url":"https://avatars.githubusercontent.com/u/251987?v=3","gravatar_id":"","url":"https://api.github.com/users/manicminer","html_url":"https://github.com/manicminer","followers_url":"https://api.github.com/users/manicminer/followers","following_url":"https://api.github.com/users/manicminer/following{/other_user}","gists_url":"https://api.github.com/users/manicminer/gists{/gist_id}","starred_url":"https://api.github.com/users/manicminer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manicminer/subscriptions","organizations_url":"https://api.github.com/users/manicminer/orgs","repos_url":"https://api.github.com/users/manicminer/repos","events_url":"https://api.github.com/users/manicminer/events{/privacy}","received_events_url":"https://api.github.com/users/manicminer/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T12:43:19Z","updated_at":"2016-05-12T12:43:19Z","body":"@dhgrainger Thanks for the error report. Are you sure that you have the `aws` command installed on your Ansible control host? You can get it on most distributions by running:\r\n```shell\r\n[sudo] pip install awscli\r\n```\r\n\r\nWe have a new version of this module that uses native Python APIs to search for launch configurations instead of a command line subprocess - I'll update this repo sometime soon with the newer module."}}