)]}'
{"tasks/rpm.yml":[{"author":{"_account_id":14805,"name":"Jimmy McCrory","email":"jimmy.mccrory@gmail.com","username":"jimmy-mccrory"},"change_message_id":"f185212e268baf578d4434371d36d378caa13eef","unresolved":false,"context_lines":[{"line_number":16,"context_line":"- name: Check if CentOS 7 GPG keys are installed (for V-38476)"},{"line_number":17,"context_line":"  command: rpm -qi gpg-pubkey-f4a80eb5-53a7ff4b"},{"line_number":18,"context_line":"  register: v38476_result"},{"line_number":19,"context_line":"  changed_when: v38476_result | failed"},{"line_number":20,"context_line":"  failed_when: False"},{"line_number":21,"context_line":"  always_run: True"},{"line_number":22,"context_line":"  when:"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"7aa08908_714ee03b","line":19,"range":{"start_line":19,"start_character":0,"end_line":19,"end_character":38},"updated":"2016-06-09 04:29:26.000000000","message":"Does this work correctly with \u0027failed_when: False\u0027?\nCheck return code instead?","commit_id":"9e5b7a54164946b3e3f32b3b804405e185d01572"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"09e009a20af39857528923ffd8d56992e163c8eb","unresolved":false,"context_lines":[{"line_number":16,"context_line":"- name: Check if CentOS 7 GPG keys are installed (for V-38476)"},{"line_number":17,"context_line":"  command: rpm -qi gpg-pubkey-f4a80eb5-53a7ff4b"},{"line_number":18,"context_line":"  register: v38476_result"},{"line_number":19,"context_line":"  changed_when: v38476_result | failed"},{"line_number":20,"context_line":"  failed_when: False"},{"line_number":21,"context_line":"  always_run: True"},{"line_number":22,"context_line":"  when:"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"7aa08908_faae0e97","line":19,"updated":"2016-06-09 14:02:38.000000000","message":"The failed filter checks the return code and it does work with failed_when. If the GPG keys aren\u0027t present, v38476_result | failed returns as True.","commit_id":"9e5b7a54164946b3e3f32b3b804405e185d01572"},{"author":{"_account_id":14805,"name":"Jimmy McCrory","email":"jimmy.mccrory@gmail.com","username":"jimmy-mccrory"},"change_message_id":"f185212e268baf578d4434371d36d378caa13eef","unresolved":false,"context_lines":[{"line_number":30,"context_line":"  fail:"},{"line_number":31,"context_line":"    msg: \"Missing CentOS 7 GPG keys\""},{"line_number":32,"context_line":"  when:"},{"line_number":33,"context_line":"    - v38476_result | failed"},{"line_number":34,"context_line":"  tags:"},{"line_number":35,"context_line":"    - package"},{"line_number":36,"context_line":"    - cat1"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"7aa08908_4e7501c9","line":33,"range":{"start_line":33,"start_character":0,"end_line":33,"end_character":28},"updated":"2016-06-09 04:29:26.000000000","message":"Does this fail properly?\nThe task has \u0027failed_when: False\"\n\nAlso include another when for ansible_distribution \u003d\u003d \u0027CentOS\u0027 like below.","commit_id":"9e5b7a54164946b3e3f32b3b804405e185d01572"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"09e009a20af39857528923ffd8d56992e163c8eb","unresolved":false,"context_lines":[{"line_number":30,"context_line":"  fail:"},{"line_number":31,"context_line":"    msg: \"Missing CentOS 7 GPG keys\""},{"line_number":32,"context_line":"  when:"},{"line_number":33,"context_line":"    - v38476_result | failed"},{"line_number":34,"context_line":"  tags:"},{"line_number":35,"context_line":"    - package"},{"line_number":36,"context_line":"    - cat1"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"7aa08908_5a948243","line":33,"updated":"2016-06-09 14:02:38.000000000","message":"This checks the return code of the previous task.","commit_id":"9e5b7a54164946b3e3f32b3b804405e185d01572"},{"author":{"_account_id":14805,"name":"Jimmy McCrory","email":"jimmy.mccrory@gmail.com","username":"jimmy-mccrory"},"change_message_id":"f185212e268baf578d4434371d36d378caa13eef","unresolved":false,"context_lines":[{"line_number":39,"context_line":"- name: Check if Red Hat Enterprise Linux 7 GPG keys are installed (for V-38476)"},{"line_number":40,"context_line":"  command: \"rpm -qi {{ item }}\""},{"line_number":41,"context_line":"  register: v38476_result"},{"line_number":42,"context_line":"  changed_when: v38476_result | failed"},{"line_number":43,"context_line":"  failed_when: False"},{"line_number":44,"context_line":"  always_run: True"},{"line_number":45,"context_line":"  with_items:"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"7aa08908_3140d806","line":42,"range":{"start_line":42,"start_character":0,"end_line":42,"end_character":38},"updated":"2016-06-09 04:29:26.000000000","message":"Does this work correctly with \u0027failed_when: False\u0027?\nCheck return code instead?","commit_id":"9e5b7a54164946b3e3f32b3b804405e185d01572"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"09e009a20af39857528923ffd8d56992e163c8eb","unresolved":false,"context_lines":[{"line_number":39,"context_line":"- name: Check if Red Hat Enterprise Linux 7 GPG keys are installed (for V-38476)"},{"line_number":40,"context_line":"  command: \"rpm -qi {{ item }}\""},{"line_number":41,"context_line":"  register: v38476_result"},{"line_number":42,"context_line":"  changed_when: v38476_result | failed"},{"line_number":43,"context_line":"  failed_when: False"},{"line_number":44,"context_line":"  always_run: True"},{"line_number":45,"context_line":"  with_items:"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"7aa08908_3a91b653","line":42,"updated":"2016-06-09 14:02:38.000000000","message":"It tests out (see comments above).","commit_id":"9e5b7a54164946b3e3f32b3b804405e185d01572"},{"author":{"_account_id":14805,"name":"Jimmy McCrory","email":"jimmy.mccrory@gmail.com","username":"jimmy-mccrory"},"change_message_id":"f185212e268baf578d4434371d36d378caa13eef","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    msg: \"Missing Red Hat Enterprise Linux 7 GPG keys\""},{"line_number":58,"context_line":"  when:"},{"line_number":59,"context_line":"    - ansible_distribution \u003d\u003d \u0027RedHat\u0027"},{"line_number":60,"context_line":"    - v38476_result.results | map(attribute\u003d\u0027rc\u0027) | join(\u0027\u0027) !\u003d \u002700\u0027"},{"line_number":61,"context_line":"  tags:"},{"line_number":62,"context_line":"    - package"},{"line_number":63,"context_line":"    - cat1"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"7aa08908_ee1aed7b","line":60,"range":{"start_line":60,"start_character":0,"end_line":60,"end_character":68},"updated":"2016-06-09 04:29:26.000000000","message":"Could this be simplified?\n\n- v38476_result | changed","commit_id":"9e5b7a54164946b3e3f32b3b804405e185d01572"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"09e009a20af39857528923ffd8d56992e163c8eb","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    msg: \"Missing Red Hat Enterprise Linux 7 GPG keys\""},{"line_number":58,"context_line":"  when:"},{"line_number":59,"context_line":"    - ansible_distribution \u003d\u003d \u0027RedHat\u0027"},{"line_number":60,"context_line":"    - v38476_result.results | map(attribute\u003d\u0027rc\u0027) | join(\u0027\u0027) !\u003d \u002700\u0027"},{"line_number":61,"context_line":"  tags:"},{"line_number":62,"context_line":"    - package"},{"line_number":63,"context_line":"    - cat1"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"7aa08908_9a9eea61","line":60,"updated":"2016-06-09 14:02:38.000000000","message":"Done","commit_id":"9e5b7a54164946b3e3f32b3b804405e185d01572"}]}
