)]}'
{"playbooks/openstack-hosts-setup.yml":[{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"1e15fa0a161b1f8041d45a367188f11f4f7ab570","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"            if [ $result -eq 1 ]; then"},{"line_number":43,"context_line":"              apt-get -y install build-essential checkinstall"},{"line_number":44,"context_line":"              apt-get -y install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev"},{"line_number":45,"context_line":"              apt-get -y install python"},{"line_number":46,"context_line":"              result\u003d2"},{"line_number":47,"context_line":"            fi"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3a461143_b01ba51a","line":44,"updated":"2017-01-26 20:21:58.000000000","message":"Why are these two lines needed? If they are dependencies won\u0027t they be resolved automatically?","commit_id":"1728ec4372de997918b4325668e7f5e051cb826c"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"04c9b037028178d94cee4087c4cc4652dfdef624","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"            if [ $result -eq 1 ]; then"},{"line_number":43,"context_line":"              apt-get -y install build-essential checkinstall"},{"line_number":44,"context_line":"              apt-get -y install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev"},{"line_number":45,"context_line":"              apt-get -y install python"},{"line_number":46,"context_line":"              result\u003d2"},{"line_number":47,"context_line":"            fi"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3a461143_b929d18b","line":44,"in_reply_to":"3a461143_1642b23e","updated":"2017-01-26 20:55:43.000000000","message":"Your output shows \"apt-get install python-dev\" not \"apt-get install python\"\n\nI checked another project where I do this sort of bootstrapping of python for ansible: http://cdn.pasteraw.com/30f1jrprvfcxs05vpey7ug4hm9qm08v\n\nThat is based on the ansible doc at http://docs.ansible.com/ansible/intro_installation.html\n\nIt has worked fine for Xenial/CentOS/Fedora.","commit_id":"1728ec4372de997918b4325668e7f5e051cb826c"},{"author":{"_account_id":16479,"name":"weezer su","email":"weezer.su@rackspace.com","username":"weezS"},"change_message_id":"d76c0ac31972f654a0a59c16ef9b5314e7a18217","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"            if [ $result -eq 1 ]; then"},{"line_number":43,"context_line":"              apt-get -y install build-essential checkinstall"},{"line_number":44,"context_line":"              apt-get -y install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev"},{"line_number":45,"context_line":"              apt-get -y install python"},{"line_number":46,"context_line":"              result\u003d2"},{"line_number":47,"context_line":"            fi"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3a461143_1642b23e","line":44,"in_reply_to":"3a461143_b01ba51a","updated":"2017-01-26 20:48:57.000000000","message":"unlucky those dependencies won\u0027t be installed automatically with apt-get install python on Xenial. without those 2 lines and dependencies, I got errors with TASK [openstack_hosts : Install host packages].\n\nroot@infra1:~# apt-get install python-dev\nReading package lists... Done\nBuilding dependency tree\nReading state information... Done\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n python-dev : Depends: libpython-dev (\u003d 2.7.5-5ubuntu3) but it is not going to be installed\n              Depends: python2.7-dev (\u003e\u003d 2.7.5-1~) but it is not going to be installed\nE: Unable to correct problems, you have held broken packages.","commit_id":"1728ec4372de997918b4325668e7f5e051cb826c"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"f2febaea8d0068befa6ff51376acb1bc88304974","unresolved":false,"context_lines":[{"line_number":36,"context_line":"            exit $result;"},{"line_number":37,"context_line":"          ;;"},{"line_number":38,"context_line":"          ubuntu)"},{"line_number":39,"context_line":"            dpkg-query -s python"},{"line_number":40,"context_line":"            result\u003d$?"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"            if [ $result -eq 1 ]; then"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3a461143_3321754e","line":39,"updated":"2017-01-27 01:23:59.000000000","message":"I\u0027m thinking maybe we should do\ndpkg-query -s python \u0026\u003e/dev/null\n\nsince we don\u0027t really want the output, just the return code","commit_id":"1dc8c65712e1f2d4cd2cd11ea44f327a1d7c14c3"},{"author":{"_account_id":16479,"name":"weezer su","email":"weezer.su@rackspace.com","username":"weezS"},"change_message_id":"fcc7387ce7d82b852827f3e65706fe4ca6126529","unresolved":false,"context_lines":[{"line_number":36,"context_line":"            exit $result;"},{"line_number":37,"context_line":"          ;;"},{"line_number":38,"context_line":"          ubuntu)"},{"line_number":39,"context_line":"            dpkg-query -s python"},{"line_number":40,"context_line":"            result\u003d$?"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"            if [ $result -eq 1 ]; then"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3a461143_1310f9a7","line":39,"in_reply_to":"3a461143_3321754e","updated":"2017-01-27 01:41:41.000000000","message":"Done","commit_id":"1dc8c65712e1f2d4cd2cd11ea44f327a1d7c14c3"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"f2febaea8d0068befa6ff51376acb1bc88304974","unresolved":false,"context_lines":[{"line_number":48,"context_line":"          ;;"},{"line_number":49,"context_line":"        esac"},{"line_number":50,"context_line":"      changed_when: \"result.rc \u003d\u003d 2\""},{"line_number":51,"context_line":"      failed_when: false"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"- name: Basic host setup"},{"line_number":54,"context_line":"  hosts: \"{{ openstack_host_group|default(\u0027hosts\u0027) }}\""}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3a461143_73bf7dfb","line":51,"updated":"2017-01-27 01:23:59.000000000","message":"I wonder if we should do\n\nfailed_when: \"{{ result.rc not in [0, 2] }}\"","commit_id":"1dc8c65712e1f2d4cd2cd11ea44f327a1d7c14c3"},{"author":{"_account_id":16479,"name":"weezer su","email":"weezer.su@rackspace.com","username":"weezS"},"change_message_id":"fcc7387ce7d82b852827f3e65706fe4ca6126529","unresolved":false,"context_lines":[{"line_number":48,"context_line":"          ;;"},{"line_number":49,"context_line":"        esac"},{"line_number":50,"context_line":"      changed_when: \"result.rc \u003d\u003d 2\""},{"line_number":51,"context_line":"      failed_when: false"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"- name: Basic host setup"},{"line_number":54,"context_line":"  hosts: \"{{ openstack_host_group|default(\u0027hosts\u0027) }}\""}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3a461143_53228102","line":51,"in_reply_to":"3a461143_73bf7dfb","updated":"2017-01-27 01:41:41.000000000","message":"wow thank you for helping me so much, i was thinking of how to get rid of the error from the dpkg-query cmd.","commit_id":"1dc8c65712e1f2d4cd2cd11ea44f327a1d7c14c3"}]}
