)]}'
{"tasks/lxc_selinux.yml":[{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"04a6ff6c234e0b73bff78e1e8971f362051a2f5f","unresolved":false,"context_lines":[{"line_number":17,"context_line":"# a return code of \u00271\u0027."},{"line_number":18,"context_line":"- name: Create SELinux fcontext equivalence for OpenStack container logs"},{"line_number":19,"context_line":"  command: semanage fcontext --add --equal /var/log /openstack/log"},{"line_number":20,"context_line":"  failed_when: False"},{"line_number":21,"context_line":"  changed_when: selinux_equivalence.rc \u003d\u003d 0"},{"line_number":22,"context_line":"  register: selinux_equivalence"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":1,"id":"3a461143_7928e2e2","line":20,"updated":"2017-01-30 20:20:12.000000000","message":"just a thought but could we tighten this up to selinux_equivalence.rc not in [0, 1]","commit_id":"1d86e1f05dec6c75dbd89d866b80c5542d4c70b0"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"c9305ebb1caff86ffb36f95a48fa8e60179761f2","unresolved":false,"context_lines":[{"line_number":17,"context_line":"# a return code of \u00271\u0027."},{"line_number":18,"context_line":"- name: Create SELinux fcontext equivalence for OpenStack container logs"},{"line_number":19,"context_line":"  command: semanage fcontext --add --equal /var/log /openstack/log"},{"line_number":20,"context_line":"  failed_when: False"},{"line_number":21,"context_line":"  changed_when: selinux_equivalence.rc \u003d\u003d 0"},{"line_number":22,"context_line":"  register: selinux_equivalence"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":1,"id":"3a461143_d972b610","line":20,"in_reply_to":"3a461143_7928e2e2","updated":"2017-01-30 20:20:45.000000000","message":"Good point. I\u0027ll add that.","commit_id":"1d86e1f05dec6c75dbd89d866b80c5542d4c70b0"},{"author":{"_account_id":13095,"name":"Marc Gariépy","email":"gariepy.marc@gmail.com","username":"mgariepy"},"change_message_id":"88e8b42ec6a6d5576f5dae529b4d2d751d4cd56b","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"# NOTE(mhayden): If the equivalence already exists, this command will exit with"},{"line_number":17,"context_line":"# a return code of \u00271\u0027."},{"line_number":18,"context_line":"- name: Create SELinux fcontext equivalence for OpenStack container logs"},{"line_number":19,"context_line":"  command: semanage fcontext --add --equal /var/log /openstack/log"},{"line_number":20,"context_line":"  failed_when: selinux_equivalence.rc not in [0,1]"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3a461143_9c673ce8","line":17,"range":{"start_line":17,"start_character":21,"end_line":17,"end_character":23},"updated":"2017-01-30 20:33:40.000000000","message":"can we validate the equiv exists when the RC is 1 just to make sure it\u0027s there and it\u0027s not another failure ?\n\n# semanage fcontext -l -C /openstack/log/\n\nSELinux Local fcontext Equivalence \n\n/openstack/log \u003d /var/log","commit_id":"c0f6a9947d3aadb657ea51b6cc28150456d63b92"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"17b64ccd40b954ae055f77ed1a07d1c7c083626c","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"# NOTE(mhayden): If the equivalence already exists, this command will exit with"},{"line_number":17,"context_line":"# a return code of \u00271\u0027."},{"line_number":18,"context_line":"- name: Create SELinux fcontext equivalence for OpenStack container logs"},{"line_number":19,"context_line":"  command: semanage fcontext --add --equal /var/log /openstack/log"},{"line_number":20,"context_line":"  failed_when: selinux_equivalence.rc not in [0,1]"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3a461143_b29dff67","line":17,"in_reply_to":"3a461143_9c673ce8","updated":"2017-01-30 21:41:44.000000000","message":"Just pushed a patch to fix this.","commit_id":"c0f6a9947d3aadb657ea51b6cc28150456d63b92"},{"author":{"_account_id":13095,"name":"Marc Gariépy","email":"gariepy.marc@gmail.com","username":"mgariepy"},"change_message_id":"f90bc9c8ce02e634f46bc201653d047f8f16add7","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Check for SELinux equivalence for /openstack/log"},{"line_number":17,"context_line":"  shell: \"semanage fcontext -l /openstack/log | grep ^/openstack/log || true\""},{"line_number":18,"context_line":"  register: fcontext_check"},{"line_number":19,"context_line":"  tags:"},{"line_number":20,"context_line":"    - skip_ansible_lint"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3a461143_af058346","line":17,"range":{"start_line":17,"start_character":10,"end_line":17,"end_character":18},"updated":"2017-01-31 13:20:56.000000000","message":"maybe /sbin/semanage, or set the PATH if possible.","commit_id":"5d839a7edb4b54df423dad97fdfba40cadc09b10"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"674008e1c2a124313a1a642ef06e985c0558b76b","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"- name: Create SELinux fcontext equivalence for OpenStack container logs"},{"line_number":23,"context_line":"  command: semanage fcontext --add --equal /var/log /openstack/log"},{"line_number":24,"context_line":"  failed_when: False"},{"line_number":25,"context_line":"  changed_when: selinux_equivalence.rc \u003d\u003d 0"},{"line_number":26,"context_line":"  register: selinux_equivalence"},{"line_number":27,"context_line":"  when:"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3a461143_6d273cca","line":24,"updated":"2017-01-30 22:23:03.000000000","message":"I think the failed_when you had during PS2 was good, just needed a stat to make sure the dir exists and skip all of this if it doesn\u0027t. (Or create it if that\u0027s more appropriate.)","commit_id":"5d839a7edb4b54df423dad97fdfba40cadc09b10"},{"author":{"_account_id":13095,"name":"Marc Gariépy","email":"gariepy.marc@gmail.com","username":"mgariepy"},"change_message_id":"60b088e2b5b12c258a72152a756fe1101a67639b","unresolved":false,"context_lines":[{"line_number":19,"context_line":"  register: openstack_log_dir"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"- name: Check for SELinux equivalence for /openstack/log"},{"line_number":22,"context_line":"  shell: \"/usr/sbin/semanage fcontext -l /openstack/log | grep ^/openstack/log || true\""},{"line_number":23,"context_line":"  register: fcontext_check"},{"line_number":24,"context_line":"  tags:"},{"line_number":25,"context_line":"    - skip_ansible_lint"}],"source_content_type":"text/x-yaml","patch_set":8,"id":"3a461143_c070dc74","line":22,"range":{"start_line":22,"start_character":10,"end_line":22,"end_character":20},"updated":"2017-01-31 14:05:59.000000000","message":"not needed anymore as the issue was a missing package.","commit_id":"ba8e8c5d9132609f34c11cb24683d99dcde6c448"}]}
