{"action":"created","issue":{"url":"https://api.github.com/repos/roots/trellis/issues/303","labels_url":"https://api.github.com/repos/roots/trellis/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/roots/trellis/issues/303/comments","events_url":"https://api.github.com/repos/roots/trellis/issues/303/events","html_url":"https://github.com/roots/trellis/issues/303","id":101207561,"number":303,"title":"Deploy local commands: rsync permissions","user":{"login":"swalkinshaw","id":295605,"avatar_url":"https://avatars.githubusercontent.com/u/295605?v=3","gravatar_id":"","url":"https://api.github.com/users/swalkinshaw","html_url":"https://github.com/swalkinshaw","followers_url":"https://api.github.com/users/swalkinshaw/followers","following_url":"https://api.github.com/users/swalkinshaw/following{/other_user}","gists_url":"https://api.github.com/users/swalkinshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/swalkinshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swalkinshaw/subscriptions","organizations_url":"https://api.github.com/users/swalkinshaw/orgs","repos_url":"https://api.github.com/users/swalkinshaw/repos","events_url":"https://api.github.com/users/swalkinshaw/events{/privacy}","received_events_url":"https://api.github.com/users/swalkinshaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/roots/trellis/milestones/1","html_url":"https://github.com/roots/trellis/milestones/1.0.0","labels_url":"https://api.github.com/repos/roots/trellis/milestones/1/labels","id":1199079,"number":1,"title":"1.0.0","description":"","creator":{"login":"austinpray","id":2192970,"avatar_url":"https://avatars.githubusercontent.com/u/2192970?v=3","gravatar_id":"","url":"https://api.github.com/users/austinpray","html_url":"https://github.com/austinpray","followers_url":"https://api.github.com/users/austinpray/followers","following_url":"https://api.github.com/users/austinpray/following{/other_user}","gists_url":"https://api.github.com/users/austinpray/gists{/gist_id}","starred_url":"https://api.github.com/users/austinpray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinpray/subscriptions","organizations_url":"https://api.github.com/users/austinpray/orgs","repos_url":"https://api.github.com/users/austinpray/repos","events_url":"https://api.github.com/users/austinpray/events{/privacy}","received_events_url":"https://api.github.com/users/austinpray/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":9,"state":"open","created_at":"2015-07-08T16:33:53Z","updated_at":"2015-08-16T05:10:44Z","due_on":"2015-08-31T05:00:00Z","closed_at":null},"comments":3,"created_at":"2015-08-15T20:28:50Z","updated_at":"2015-08-16T05:49:29Z","closed_at":null,"body":"See https://github.com/roots/roots-example-project.com/issues/22 for more details.\r\n\r\n/cc @fullyint "},"comment":{"url":"https://api.github.com/repos/roots/trellis/issues/comments/131492355","html_url":"https://github.com/roots/trellis/issues/303#issuecomment-131492355","issue_url":"https://api.github.com/repos/roots/trellis/issues/303","id":131492355,"user":{"login":"fullyint","id":7338513,"avatar_url":"https://avatars.githubusercontent.com/u/7338513?v=3","gravatar_id":"","url":"https://api.github.com/users/fullyint","html_url":"https://github.com/fullyint","followers_url":"https://api.github.com/users/fullyint/followers","following_url":"https://api.github.com/users/fullyint/following{/other_user}","gists_url":"https://api.github.com/users/fullyint/gists{/gist_id}","starred_url":"https://api.github.com/users/fullyint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullyint/subscriptions","organizations_url":"https://api.github.com/users/fullyint/orgs","repos_url":"https://api.github.com/users/fullyint/repos","events_url":"https://api.github.com/users/fullyint/events{/privacy}","received_events_url":"https://api.github.com/users/fullyint/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T05:49:29Z","updated_at":"2015-08-16T05:49:29Z","body":"Here's where I'm headed, in case anyone has feedback: \r\n```diff\r\n - name: Copy project local files\r\n-  synchronize: src=\"{{ item.src }}\" dest=\"{{ deploy_helper.new_release_path }}/{{ item.dest }}\"\r\n+  synchronize: src=\"{{ item.src }}\"\r\n+               dest=\"{{ deploy_helper.new_release_path }}/{{ item.dest }}\"\r\n+               group=no\r\n+               owner=no\r\n+               rsync_opts=--chmod=Du=rwx,--chmod=Dg=rx,--chmod=Do=rx,--chmod=Fu=rw,--chmod=Fg=r,--chmod=Fo=r\r\n   with_items: project_local_files\r\n```\r\n* `perms=no` is unnecessary when the `--chmod=` options are included\r\n* `group=no` should be necessary, but on my setup, owner and group never get synced, so I'm unsure.\r\n* `owner=no` seems less critical because it applies only if super user.\r\n\r\nAt this point, I'd play it safe and include both `group=no` and `owner=no`. Feedback and testing welcome.\r\n"}}