)]}'
{"playbooks/roles/galera_server/tasks/main.yml":[{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"9d378476f5bbf6c7c987d74f63ebdebdc5318f5f","unresolved":false,"context_lines":[{"line_number":23,"context_line":"  meta: flush_handlers"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"- include: galera_setup.yml"},{"line_number":26,"context_line":"  when: inventory_hostname \u003d\u003d galera_server_bootstrap_node"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"7a740942_8910bc5a","line":26,"updated":"2015-12-07 19:38:11.000000000","message":"as an alternative, try replacing the when condition with\n\nrun_once: true\n\nwhich should do exactly the same thing without any need for either specifying the target host group or use of the galera_server_bootstrap_node variable.\n\nhttp://docs.ansible.com/ansible/playbooks_delegation.html#run-once","commit_id":"40f25b16be4813451bdf8580d923a06b74b22f17"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"8e43a22414f50e3533584bc498df05d41cacd1cc","unresolved":false,"context_lines":[{"line_number":23,"context_line":"  meta: flush_handlers"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"- include: galera_setup.yml"},{"line_number":26,"context_line":"  when: inventory_hostname \u003d\u003d galera_server_bootstrap_node"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"7a740942_e2d71549","line":26,"in_reply_to":"7a740942_8910bc5a","updated":"2015-12-07 20:24:54.000000000","message":"Thanks for the suggestion. I forgot about run_once.\n\nOne issue I foresee is: The galera_server_bootstrap_node variable is used elsewhere in the role to bootstrap the cluster. I assume there is a valid reason to make sure it\u0027s always the same node that gets used to bootstrap the cluster. With run_once, I\u0027m not sure there is a guaranty that the same node will be used to run all bootstrap/setup tasks.\n\nLet me know if my assumptions are wrong.","commit_id":"40f25b16be4813451bdf8580d923a06b74b22f17"},{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"d2ee01b481cf6e6365f68f7625d18e512283f070","unresolved":false,"context_lines":[{"line_number":23,"context_line":"  meta: flush_handlers"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"- include: galera_setup.yml"},{"line_number":26,"context_line":"  when: inventory_hostname \u003d\u003d galera_server_bootstrap_node"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"7a740942_02da6117","line":26,"in_reply_to":"7a740942_e2d71549","updated":"2015-12-07 20:30:22.000000000","message":"I think you may be right. I wanted to ensure the alternatives are considered and discounted early.\n\nFor all of the openstack service roles run_once is likely the right answer. For Galera and Rabbit, maybe not.","commit_id":"40f25b16be4813451bdf8580d923a06b74b22f17"}]}
