)]}'
{"playbooks/infra-journal-remote.yml":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"6caa1c2b499778718594219cdb0166af5e15e680","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    - name: Skip playbook if no log_hosts group is defined in the inventory"},{"line_number":30,"context_line":"      meta: end_play"},{"line_number":31,"context_line":"      when:"},{"line_number":32,"context_line":"        - \"\u0027log_hosts\u0027 not in groups\""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    - name: Install systemd-journal-remote"},{"line_number":35,"context_line":"      package:"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"5f7c97a3_37b00bde","line":32,"range":{"start_line":32,"start_character":10,"end_line":32,"end_character":37},"updated":"2018-05-17 07:29:51.000000000","message":"It can be in groups and have 0 hosts, both would cause the issue.\nYou can replace the condition with:\n\n- \u0027log_hosts\u0027 not in groups or groups[\u0027log_hosts\u0027] | length \u003d\u003d 0","commit_id":"441a53456c6a75d882d4bd32f43f6eec47d67af0"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"ea619f49c7c8bbb01e60d6c112f41d25fff0fbc2","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    - name: Skip playbook if no log_hosts group is defined in the inventory"},{"line_number":30,"context_line":"      meta: end_play"},{"line_number":31,"context_line":"      when:"},{"line_number":32,"context_line":"        - \u0027log_hosts\u0027 not in groups or groups[\u0027log_hosts\u0027] | length \u003d\u003d 0"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    - name: Install systemd-journal-remote"},{"line_number":35,"context_line":"      package:"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5f7c97a3_b7573b27","line":32,"range":{"start_line":32,"start_character":10,"end_line":32,"end_character":35},"updated":"2018-05-17 07:45:32.000000000","message":"\u0027log_hosts\u0027 is one of the default groups, so this condition is always true and therefore unnecessary: https://github.com/openstack/openstack-ansible/blob/d057e9522f37fbbe446aa79cbff5f6c23150d944/inventory/env.d/rsyslog.yml#L34","commit_id":"1115fcde2c263b71e7b66d950e86fb54f7077c4d"}]}
