)]}'
{"handlers/main.yml":[{"author":{"_account_id":28619,"name":"Dmitriy Rabotyagov","email":"noonedeadpunk@gmail.com","username":"noonedeadpunk"},"change_message_id":"88fbc3c5190c4ae71e121ed1d4ead9168e70adcc","unresolved":false,"context_lines":[{"line_number":45,"context_line":"  until: _restart is success"},{"line_number":46,"context_line":"  retries: 5"},{"line_number":47,"context_line":"  delay: 2"},{"line_number":48,"context_line":"  delegate_to: \"{{ groups[\u0027repo_all\u0027][0] }}\""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"- name: reload git-daemon"},{"line_number":51,"context_line":"  service:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3fa7e38b_b893cca2","line":48,"range":{"start_line":48,"start_character":2,"end_line":48,"end_character":13},"updated":"2019-11-01 09:30:03.000000000","message":"I\u0027m not sure, but won\u0027t this cause lsyncd restart \"{{ group[\u0027repo_all\u0027] | length }}\" times?\nMaybe, maybe, using condition is more appropriate?","commit_id":"e5cff672fae7bc111ae3be7b0492344e7264853e"},{"author":{"_account_id":28619,"name":"Dmitriy Rabotyagov","email":"noonedeadpunk@gmail.com","username":"noonedeadpunk"},"change_message_id":"5ac299140b894edaedd6d0ead931c3359f733123","unresolved":false,"context_lines":[{"line_number":45,"context_line":"  until: _restart is success"},{"line_number":46,"context_line":"  retries: 5"},{"line_number":47,"context_line":"  delay: 2"},{"line_number":48,"context_line":"  delegate_to: \"{{ groups[\u0027repo_all\u0027][0] }}\""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"- name: reload git-daemon"},{"line_number":51,"context_line":"  service:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3fa7e38b_5f42ba3c","line":48,"range":{"start_line":48,"start_character":2,"end_line":48,"end_character":13},"in_reply_to":"3fa7e38b_187a20f0","updated":"2019-11-01 15:50:47.000000000","message":"but once per host I gues? So other hosts are going to do delegate anyway?","commit_id":"e5cff672fae7bc111ae3be7b0492344e7264853e"},{"author":{"_account_id":1004,"name":"Mohammed Naser","email":"mnaser@vexxhost.com","username":"mnaser"},"change_message_id":"e92721ffbf15ae4f7e3abf303d16ec01a4984a8d","unresolved":false,"context_lines":[{"line_number":45,"context_line":"  until: _restart is success"},{"line_number":46,"context_line":"  retries: 5"},{"line_number":47,"context_line":"  delay: 2"},{"line_number":48,"context_line":"  delegate_to: \"{{ groups[\u0027repo_all\u0027][0] }}\""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"- name: reload git-daemon"},{"line_number":51,"context_line":"  service:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3fa7e38b_e30f332c","line":48,"range":{"start_line":48,"start_character":2,"end_line":48,"end_character":13},"in_reply_to":"3fa7e38b_5f42ba3c","updated":"2020-01-10 21:56:46.000000000","message":"ya so if \u0027reload lsyncd\u0027 is triggered by 3 nodes, it will run the handler 3 times, and it will run it every single time on the same first lsyncd node","commit_id":"e5cff672fae7bc111ae3be7b0492344e7264853e"},{"author":{"_account_id":25023,"name":"Jonathan Rosser","email":"jonathan.rosser@rd.bbc.co.uk","username":"jrosser"},"change_message_id":"2928e19807f7ea4daba648f2de15e8060fed3d2e","unresolved":false,"context_lines":[{"line_number":45,"context_line":"  until: _restart is success"},{"line_number":46,"context_line":"  retries: 5"},{"line_number":47,"context_line":"  delay: 2"},{"line_number":48,"context_line":"  delegate_to: \"{{ groups[\u0027repo_all\u0027][0] }}\""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"- name: reload git-daemon"},{"line_number":51,"context_line":"  service:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3fa7e38b_187a20f0","line":48,"range":{"start_line":48,"start_character":2,"end_line":48,"end_character":13},"in_reply_to":"3fa7e38b_b893cca2","updated":"2019-11-01 10:10:40.000000000","message":"this is a handler, so I think it\u0027s only done once?","commit_id":"e5cff672fae7bc111ae3be7b0492344e7264853e"}],"tasks/repo_install.yml":[{"author":{"_account_id":25023,"name":"Jonathan Rosser","email":"jonathan.rosser@rd.bbc.co.uk","username":"jrosser"},"change_message_id":"d26babd01aa1bb2be5d52a22685c907b0bb5a6e9","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"# Reload lsync on master node to populate repos when"},{"line_number":82,"context_line":"# the playbook is limited to secondary nodes."},{"line_number":83,"context_line":"- name: Reload lsync on master repo server"},{"line_number":84,"context_line":"  debug:"},{"line_number":85,"context_line":"    msg: \"Forcing restart of lsyncd on {{ groups[\u0027repo_all\u0027][0] }}\""},{"line_number":86,"context_line":"  notify: reload lsyncd"},{"line_number":87,"context_line":"  when: inventory_hostname !\u003d groups[\u0027repo_all\u0027][0]"},{"line_number":88,"context_line":"  changed_when: True"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"bfb3d3c7_2f2cf100","line":88,"range":{"start_line":83,"start_character":0,"end_line":88,"end_character":20},"updated":"2019-05-22 20:13:18.000000000","message":"This is not a very good pattern, as the task will be always changed on every run, breaking idempotency. It would be better to attach the notify to an existing task that will be changed only once during the initial setup of the repo container, like package installs or nginx config being dropped.","commit_id":"b32415098c6570a634a60c4642ed209a48563190"}],"tasks/repo_pre_install.yml":[{"author":{"_account_id":25023,"name":"Jonathan Rosser","email":"jonathan.rosser@rd.bbc.co.uk","username":"jrosser"},"change_message_id":"d26babd01aa1bb2be5d52a22685c907b0bb5a6e9","unresolved":false,"context_lines":[{"line_number":54,"context_line":"  file:"},{"line_number":55,"context_line":"    path: \"{{ repo_service_home_folder }}/repo/repo_sync_complete\""},{"line_number":56,"context_line":"    state: \"touch\""},{"line_number":57,"context_line":"    owner: \"nginx\""},{"line_number":58,"context_line":"    group: \"www-data\""},{"line_number":59,"context_line":"  when: inventory_hostname \u003d\u003d groups[\u0027repo_all\u0027][0]"},{"line_number":60,"context_line":"  changed_when: False"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"bfb3d3c7_af3f8123","line":57,"range":{"start_line":57,"start_character":12,"end_line":57,"end_character":17},"updated":"2019-05-22 20:13:18.000000000","message":"repo_service_user_name","commit_id":"b32415098c6570a634a60c4642ed209a48563190"},{"author":{"_account_id":25023,"name":"Jonathan Rosser","email":"jonathan.rosser@rd.bbc.co.uk","username":"jrosser"},"change_message_id":"d26babd01aa1bb2be5d52a22685c907b0bb5a6e9","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    path: \"{{ repo_service_home_folder }}/repo/repo_sync_complete\""},{"line_number":56,"context_line":"    state: \"touch\""},{"line_number":57,"context_line":"    owner: \"nginx\""},{"line_number":58,"context_line":"    group: \"www-data\""},{"line_number":59,"context_line":"  when: inventory_hostname \u003d\u003d groups[\u0027repo_all\u0027][0]"},{"line_number":60,"context_line":"  changed_when: False"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":1,"id":"bfb3d3c7_8f44fdb8","line":58,"range":{"start_line":58,"start_character":12,"end_line":58,"end_character":20},"updated":"2019-05-22 20:13:18.000000000","message":"repo_service_group_name","commit_id":"b32415098c6570a634a60c4642ed209a48563190"}],"templates/lsyncd.lua.j2":[{"author":{"_account_id":25023,"name":"Jonathan Rosser","email":"jonathan.rosser@rd.bbc.co.uk","username":"jrosser"},"change_message_id":"d26babd01aa1bb2be5d52a22685c907b0bb5a6e9","unresolved":false,"context_lines":[{"line_number":593,"context_line":"    rsync,"},{"line_number":594,"context_line":"    source \u003d \"{{ repo_service_home_folder }}/repo\","},{"line_number":595,"context_line":"    target \u003d \"{{ hostvars[node][\u0027ansible_host\u0027] }}:{{ repo_service_home_folder }}/repo\","},{"line_number":596,"context_line":"    exclude \u003d {\"{{ repo_git_cache_dir }}\",\"/repo_sync_complete\"},"},{"line_number":597,"context_line":"    rsync \u003d {"},{"line_number":598,"context_line":"        compress \u003d true,"},{"line_number":599,"context_line":"        acls \u003d true,"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"bfb3d3c7_8f72bd10","line":596,"range":{"start_line":596,"start_character":19,"end_line":596,"end_character":37},"updated":"2019-05-22 20:13:18.000000000","message":"why is this different from repo_service_home_folder?","commit_id":"b32415098c6570a634a60c4642ed209a48563190"}],"templates/repo_prepost_cmd.sh.j2":[{"author":{"_account_id":25023,"name":"Jonathan Rosser","email":"jonathan.rosser@rd.bbc.co.uk","username":"jrosser"},"change_message_id":"d26babd01aa1bb2be5d52a22685c907b0bb5a6e9","unresolved":false,"context_lines":[{"line_number":6,"context_line":"pre-www)"},{"line_number":7,"context_line":"  rm /etc/nginx/sites-enabled/openstack-slushee.vhost"},{"line_number":8,"context_line":"  systemctl reload nginx"},{"line_number":9,"context_line":"  rm /var/www/repo/repo_sync_complete"},{"line_number":10,"context_line":"  ;;"},{"line_number":11,"context_line":"post-www)"},{"line_number":12,"context_line":"  ln -s /etc/nginx/sites-available/openstack-slushee.vhost /etc/nginx/sites-enabled/openstack-slushee.vhost"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"bfb3d3c7_cf68b522","line":9,"range":{"start_line":9,"start_character":5,"end_line":9,"end_character":13},"updated":"2019-05-22 20:13:18.000000000","message":"repo_service_home_folder","commit_id":"b32415098c6570a634a60c4642ed209a48563190"},{"author":{"_account_id":25023,"name":"Jonathan Rosser","email":"jonathan.rosser@rd.bbc.co.uk","username":"jrosser"},"change_message_id":"d26babd01aa1bb2be5d52a22685c907b0bb5a6e9","unresolved":false,"context_lines":[{"line_number":11,"context_line":"post-www)"},{"line_number":12,"context_line":"  ln -s /etc/nginx/sites-available/openstack-slushee.vhost /etc/nginx/sites-enabled/openstack-slushee.vhost"},{"line_number":13,"context_line":"  systemctl reload nginx"},{"line_number":14,"context_line":"  touch /var/www/repo/repo_sync_complete"},{"line_number":15,"context_line":"  ;;"},{"line_number":16,"context_line":"pre-git)"},{"line_number":17,"context_line":"  systemctl stop git.socket"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"bfb3d3c7_6f774904","line":14,"range":{"start_line":14,"start_character":8,"end_line":14,"end_character":16},"updated":"2019-05-22 20:13:18.000000000","message":"repo_service_home_folder","commit_id":"b32415098c6570a634a60c4642ed209a48563190"}]}
