)]}'
{"tasks/console.yml":[{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"4d872d327f6bb14364c12dc19b1b491f5b7035e3","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"- name: Decide whether host needs to be restarted"},{"line_number":48,"context_line":"  set_fact:"},{"line_number":49,"context_line":"    requires_restart: true"},{"line_number":50,"context_line":"  when: ctrl_alt_delete.changed"},{"line_number":51,"context_line":"  tags:"},{"line_number":52,"context_line":"    - console"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"dab17558_154cb89c","line":49,"updated":"2016-05-17 13:57:35.000000000","message":"If I remember correctly, setting this variable in both tasks above will cause it to be overwritten. I was burned by this in the CentOS 7 / Xenial conversions, too.  You need to set two different variables in the tasks above and check to see if either are changed in this task.","commit_id":"791eb74af8f14c02aa07ff797a9c55a53fe820fc"},{"author":{"_account_id":167,"name":"Christian Berendt","email":"berendt@osism.tech","username":"berendt"},"change_message_id":"4ca26f7d1a7e314977240c5ae5f1244532486153","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"- name: Decide whether host needs to be restarted"},{"line_number":48,"context_line":"  set_fact:"},{"line_number":49,"context_line":"    requires_restart: true"},{"line_number":50,"context_line":"  when: ctrl_alt_delete.changed"},{"line_number":51,"context_line":"  tags:"},{"line_number":52,"context_line":"    - console"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"bab6814e_31ab988b","line":49,"in_reply_to":"dab17558_154cb89c","updated":"2016-05-18 10:43:18.000000000","message":"That\u0027s correct, I think the only way to be able to save and check both results is to use two variables with different names and the use of or in line 50. But I think it is not possible to run both tasks during one run. Task in line 16 only runs when systemd is not running, task in line 29 only runs when systemd is running. Because of that it should be fine to use the same variable name for the result of both tasks.","commit_id":"791eb74af8f14c02aa07ff797a9c55a53fe820fc"}],"tasks/main.yml":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"45efdb00d04376e30eeb6f88aff91139fd79c28e","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  - include: sshd.yml"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  - name: Determine if a restart is required"},{"line_number":42,"context_line":"    debug:"},{"line_number":43,"context_line":"      msg: \"{{ inventory_hostname }} requires a restart for all changes to take effect.\""},{"line_number":44,"context_line":"    when: requires_restart"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"1a122d0e_22439d14","line":42,"updated":"2016-04-27 19:35:20.000000000","message":"Why not setting this task as a handler?\nThis is what handlers are meant for.","commit_id":"504cdc13058bb1212567c369abf451aa7dcecdfd"},{"author":{"_account_id":19814,"name":"Travis Truman (automagically)","email":"travis_truman@cable.comcast.com","username":"trumant"},"change_message_id":"b3bd3e6e6a27466c405d933d38c86cc0ed2e2efb","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  - include: sshd.yml"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  - name: Determine if a restart is required"},{"line_number":42,"context_line":"    debug:"},{"line_number":43,"context_line":"      msg: \"{{ inventory_hostname }} requires a restart for all changes to take effect.\""},{"line_number":44,"context_line":"    when: requires_restart"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"1a122d0e_65cc7f89","line":42,"in_reply_to":"1a122d0e_22439d14","updated":"2016-04-27 20:23:33.000000000","message":"Good point. This would work well as a handler","commit_id":"504cdc13058bb1212567c369abf451aa7dcecdfd"}]}
