)]}'
{"playbooks/openstack-hosts-setup.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"6d878a4afe74a17d4ed9d7615b428a5b190f3fb3","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Basic host setup"},{"line_number":17,"context_line":"  hosts: \"{{ openstack_host_group|default(\u0027hosts\u0027) }}\""},{"line_number":18,"context_line":"  gather_facts: false"},{"line_number":19,"context_line":"  max_fail_percentage: 20"},{"line_number":20,"context_line":"  user: root"},{"line_number":21,"context_line":"  pre_tasks:"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"ba5201f7_147c34b4","line":18,"range":{"start_line":18,"start_character":0,"end_line":18,"end_character":21},"updated":"2017-01-11 15:38:39.000000000","message":"The facts should be gathered for the role execution, so I\u0027d suggest adding another playbook before this one that does the python bit instead of adding the task to this playbook.","commit_id":"be8c942bb80ba8547a6da26734271a328e66d8cb"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"28597fbcb6c3e3e92775bbef1d103cbe4d28bde4","unresolved":false,"context_lines":[{"line_number":20,"context_line":"  user: root"},{"line_number":21,"context_line":"  pre_tasks:"},{"line_number":22,"context_line":"    - name: Install python2 if don\u0027t exist"},{"line_number":23,"context_line":"      raw: test -e /usr/bin/python || (test -e /usr/bin/apt \u0026\u0026 apt install python -y) || (test -e /usr/bin/yum \u0026\u0026 yum install -y python2)"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    - setup:"},{"line_number":26,"context_line":"      when: \"{{ gather_facts | default(True) }}\""}],"source_content_type":"text/x-yaml","patch_set":1,"id":"ba5201f7_943d84df","line":23,"range":{"start_line":23,"start_character":19,"end_line":23,"end_character":34},"updated":"2017-01-11 15:39:38.000000000","message":"I think you may want to test for python2 ?","commit_id":"be8c942bb80ba8547a6da26734271a328e66d8cb"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"ccc1c796dd2f7b83ce42a5b57b0ea67582199d00","unresolved":false,"context_lines":[{"line_number":19,"context_line":"  user: root"},{"line_number":20,"context_line":"  pre_tasks:"},{"line_number":21,"context_line":"    - name: Python2 installation on host"},{"line_number":22,"context_line":"      raw: test -e /usr/bin/python2 || (test -e /usr/bin/apt \u0026\u0026 apt install python -y) || (test -e /usr/bin/yum \u0026\u0026 yum install -y python2)"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"- name: Basic host setup"},{"line_number":25,"context_line":"  hosts: \"{{ openstack_host_group|default(\u0027hosts\u0027) }}\""}],"source_content_type":"text/x-yaml","patch_set":2,"id":"ba5201f7_0c3264f2","line":22,"updated":"2017-01-11 18:28:18.000000000","message":"This is failing the lint test:\nhttp://logs.openstack.org/01/419001/2/check/gate-openstack-ansible-linters-ubuntu-xenial/d799e04/console.html#_2017-01-11_15_51_35_108576\n\nYou\u0027ll likely need to add this to the task:\n\nchanged_when: false\n\nAn alternative would be to make the command a script which gives different return codes to indicate whether something changed or not.","commit_id":"a37b47c0c24e543b4086ea3521bcc168f0eb1fab"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b594c854be6fc0ad0f9fb52a29affbe57d6bcd05","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Python2 installation on host"},{"line_number":17,"context_line":"  hosts: \"{{ openstack_host_group|default(\u0027hosts\u0027) }}\""},{"line_number":18,"context_line":"  gather_facts: false"},{"line_number":19,"context_line":"  user: root"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"ba5201f7_f2c5f68d","line":16,"range":{"start_line":16,"start_character":8,"end_line":16,"end_character":36},"updated":"2017-01-11 18:53:13.000000000","message":"Suggestion: Install Ansible prerequisites","commit_id":"8ec0c8714a4f1cd3873c405ef5cfa7d56b237958"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b594c854be6fc0ad0f9fb52a29affbe57d6bcd05","unresolved":false,"context_lines":[{"line_number":18,"context_line":"  gather_facts: false"},{"line_number":19,"context_line":"  user: root"},{"line_number":20,"context_line":"  pre_tasks:"},{"line_number":21,"context_line":"    - name: Python2 installation on host"},{"line_number":22,"context_line":"      raw: test -e /usr/bin/python2 || (test -e /usr/bin/apt \u0026\u0026 apt install python -y) || (test -e /usr/bin/yum \u0026\u0026 yum install -y python2)"},{"line_number":23,"context_line":"      changed_when: false"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":3,"id":"ba5201f7_52b96214","line":21,"range":{"start_line":21,"start_character":12,"end_line":21,"end_character":40},"updated":"2017-01-11 18:53:13.000000000","message":"Suggestion: Install Python2","commit_id":"8ec0c8714a4f1cd3873c405ef5cfa7d56b237958"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b594c854be6fc0ad0f9fb52a29affbe57d6bcd05","unresolved":false,"context_lines":[{"line_number":19,"context_line":"  user: root"},{"line_number":20,"context_line":"  pre_tasks:"},{"line_number":21,"context_line":"    - name: Python2 installation on host"},{"line_number":22,"context_line":"      raw: test -e /usr/bin/python2 || (test -e /usr/bin/apt \u0026\u0026 apt install python -y) || (test -e /usr/bin/yum \u0026\u0026 yum install -y python2)"},{"line_number":23,"context_line":"      changed_when: false"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"- name: Basic host setup"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"ba5201f7_b26b6eb8","line":22,"range":{"start_line":22,"start_character":76,"end_line":22,"end_character":82},"updated":"2017-01-11 18:53:13.000000000","message":"should this be python2 as well?","commit_id":"8ec0c8714a4f1cd3873c405ef5cfa7d56b237958"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"ff7f2d5ea18dd14795913955cac3100b36f9c17f","unresolved":false,"context_lines":[{"line_number":18,"context_line":"  gather_facts: false"},{"line_number":19,"context_line":"  user: root"},{"line_number":20,"context_line":"  pre_tasks:"},{"line_number":21,"context_line":"    - name: Install Python2"},{"line_number":22,"context_line":"      raw: test -e /usr/bin/python2 || (test -e /usr/bin/apt \u0026\u0026 apt install python -y) || (test -e /usr/bin/yum \u0026\u0026 yum install -y python2)"},{"line_number":23,"context_line":"      changed_when: false"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"- name: Basic host setup"},{"line_number":26,"context_line":"  hosts: \"{{ openstack_host_group|default(\u0027hosts\u0027) }}\""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"ba5201f7_47f7de58","line":23,"range":{"start_line":21,"start_character":0,"end_line":23,"end_character":25},"updated":"2017-01-11 21:38:46.000000000","message":"I\u0027d like to see this just called out as a package to be installed using variables which would be used based on the detected OS.","commit_id":"051a9cb82df14ab6281ecdf8800e9c0adde6c525"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9ed259da7254fb384bc7420afe25203f8a1ee2fd","unresolved":false,"context_lines":[{"line_number":18,"context_line":"  gather_facts: false"},{"line_number":19,"context_line":"  user: root"},{"line_number":20,"context_line":"  pre_tasks:"},{"line_number":21,"context_line":"    - name: Install Python2"},{"line_number":22,"context_line":"      raw: test -e /usr/bin/python2 || (test -e /usr/bin/apt \u0026\u0026 apt install python -y) || (test -e /usr/bin/yum \u0026\u0026 yum install -y python2)"},{"line_number":23,"context_line":"      changed_when: false"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"- name: Basic host setup"},{"line_number":26,"context_line":"  hosts: \"{{ openstack_host_group|default(\u0027hosts\u0027) }}\""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"9a57fde8_e456a005","line":23,"range":{"start_line":21,"start_character":0,"end_line":23,"end_character":25},"in_reply_to":"ba5201f7_47f7de58","updated":"2017-01-12 10:27:59.000000000","message":"Using the package module would require python to be on the target host. The intent here is to install python so that Ansible can operate on the host. How would you prefer to see this executed given this intent?","commit_id":"051a9cb82df14ab6281ecdf8800e9c0adde6c525"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"33f7a52e3d01ae8d572f661da8436fb4826cd89a","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Python2 installation on host"},{"line_number":17,"context_line":"  hosts: \"{{ openstack_host_group|default(\u0027hosts\u0027) }}\""},{"line_number":18,"context_line":"  gather_facts: false"},{"line_number":19,"context_line":"  user: root"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"7a3c09a3_6d419839","line":16,"range":{"start_line":16,"start_character":8,"end_line":16,"end_character":36},"updated":"2017-01-13 12:18:26.000000000","message":"Install Ansible prerequisites","commit_id":"aa2bd873056f94a63e4b0baf8b7cdbae19aec227"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"33f7a52e3d01ae8d572f661da8436fb4826cd89a","unresolved":false,"context_lines":[{"line_number":18,"context_line":"  gather_facts: false"},{"line_number":19,"context_line":"  user: root"},{"line_number":20,"context_line":"  pre_tasks:"},{"line_number":21,"context_line":"    - name: Python2 installation on host"},{"line_number":22,"context_line":"      register: result"},{"line_number":23,"context_line":"      raw: \u003e"},{"line_number":24,"context_line":"        source /etc/os-release"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"7a3c09a3_6d68b8bb","line":21,"range":{"start_line":21,"start_character":12,"end_line":21,"end_character":40},"updated":"2017-01-13 12:18:26.000000000","message":"Install Python2","commit_id":"aa2bd873056f94a63e4b0baf8b7cdbae19aec227"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"33f7a52e3d01ae8d572f661da8436fb4826cd89a","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        source /etc/os-release"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"        case ${ID} in"},{"line_number":27,"context_line":"        centos)"},{"line_number":28,"context_line":"          yum list installed python"},{"line_number":29,"context_line":"          result\u003d$?"},{"line_number":30,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":6,"id":"7a3c09a3_4daa1cd6","line":27,"range":{"start_line":27,"start_character":8,"end_line":27,"end_character":14},"updated":"2017-01-13 12:18:26.000000000","message":"centos|rhel caters for both CentOS and RHEL IIRC","commit_id":"aa2bd873056f94a63e4b0baf8b7cdbae19aec227"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"33f7a52e3d01ae8d572f661da8436fb4826cd89a","unresolved":false,"context_lines":[{"line_number":29,"context_line":"          result\u003d$?"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"          if [ $result -eq 1 ]; then"},{"line_number":32,"context_line":"            yum -y install python2"},{"line_number":33,"context_line":"          fi"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"          exit $result;"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"7a3c09a3_927423d0","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":34},"updated":"2017-01-13 12:18:26.000000000","message":"I would recommend changing result to 2 after this.","commit_id":"aa2bd873056f94a63e4b0baf8b7cdbae19aec227"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"33f7a52e3d01ae8d572f661da8436fb4826cd89a","unresolved":false,"context_lines":[{"line_number":39,"context_line":"          result\u003d$?"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"          if [ $result -eq 1 ]; then"},{"line_number":42,"context_line":"            apt-get -y install python"},{"line_number":43,"context_line":"          fi"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"          exit $result;"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"7a3c09a3_f249e78f","line":42,"range":{"start_line":42,"start_character":0,"end_line":42,"end_character":37},"updated":"2017-01-13 12:18:26.000000000","message":"I would recommend changing result to 2 after this.","commit_id":"aa2bd873056f94a63e4b0baf8b7cdbae19aec227"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"33f7a52e3d01ae8d572f661da8436fb4826cd89a","unresolved":false,"context_lines":[{"line_number":45,"context_line":"          exit $result;"},{"line_number":46,"context_line":"          ;;"},{"line_number":47,"context_line":"        esac"},{"line_number":48,"context_line":"      changed_when: \"result.rc !\u003d 0\""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"- name: Basic host setup"},{"line_number":51,"context_line":"  hosts: \"{{ openstack_host_group|default(\u0027hosts\u0027) }}\""}],"source_content_type":"text/x-yaml","patch_set":6,"id":"7a3c09a3_f2172752","line":48,"range":{"start_line":48,"start_character":34,"end_line":48,"end_character":35},"updated":"2017-01-13 12:18:26.000000000","message":"Then make this:\n\n      changed_when: \"result.rc \u003d\u003d 2\"\n\nBy doing this it will still detect an error if rc\u003d\u003d1","commit_id":"aa2bd873056f94a63e4b0baf8b7cdbae19aec227"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b2858289a62cf3b2a6402277454892866f9e939b","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        source /etc/os-release"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"        case ${ID} in"},{"line_number":27,"context_line":"        centos|rhel)"},{"line_number":28,"context_line":"          yum list installed python"},{"line_number":29,"context_line":"          result\u003d$?"},{"line_number":30,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":7,"id":"7a3c09a3_ed94a8e9","line":27,"updated":"2017-01-13 12:31:56.000000000","message":"Lines 27 - 36 should be indented two spaces over.","commit_id":"f2a74f3a97745f0117a3c806fd4e6d2eee9e3c8e"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"af60f0680b22353a1e83ce1bf854a6a94caadac9","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"        case ${ID} in"},{"line_number":27,"context_line":"        centos|rhel)"},{"line_number":28,"context_line":"          yum list installed python"},{"line_number":29,"context_line":"          result\u003d$?"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"          if [ $result -eq 1 ]; then"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"7a3c09a3_6d6d1832","line":28,"range":{"start_line":28,"start_character":29,"end_line":28,"end_character":35},"updated":"2017-01-13 12:30:00.000000000","message":"Should this be python2?","commit_id":"f2a74f3a97745f0117a3c806fd4e6d2eee9e3c8e"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b2858289a62cf3b2a6402277454892866f9e939b","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"          exit $result;"},{"line_number":37,"context_line":"          ;;"},{"line_number":38,"context_line":"        ubuntu)"},{"line_number":39,"context_line":"          dpkg -l python"},{"line_number":40,"context_line":"          result\u003d$?"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":7,"id":"7a3c09a3_6d77d8d4","line":38,"updated":"2017-01-13 12:31:56.000000000","message":"Lines 38 - 47 should be indented two spaces over.","commit_id":"f2a74f3a97745f0117a3c806fd4e6d2eee9e3c8e"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"af60f0680b22353a1e83ce1bf854a6a94caadac9","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 -l 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":7,"id":"7a3c09a3_4d113cac","line":39,"range":{"start_line":39,"start_character":18,"end_line":39,"end_character":24},"updated":"2017-01-13 12:30:00.000000000","message":"Should this be python2?","commit_id":"f2a74f3a97745f0117a3c806fd4e6d2eee9e3c8e"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"af60f0680b22353a1e83ce1bf854a6a94caadac9","unresolved":false,"context_lines":[{"line_number":40,"context_line":"          result\u003d$?"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"          if [ $result -eq 1 ]; then"},{"line_number":43,"context_line":"            apt-get -y install python"},{"line_number":44,"context_line":"            result\u003d2"},{"line_number":45,"context_line":"          fi"},{"line_number":46,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":7,"id":"7a3c09a3_ad20e0f8","line":43,"range":{"start_line":43,"start_character":31,"end_line":43,"end_character":37},"updated":"2017-01-13 12:30:00.000000000","message":"Should this be python2?","commit_id":"f2a74f3a97745f0117a3c806fd4e6d2eee9e3c8e"}]}
