{"action":"closed","issue":{"url":"https://api.github.com/repos/roots/bedrock-ansible/issues/226","labels_url":"https://api.github.com/repos/roots/bedrock-ansible/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/roots/bedrock-ansible/issues/226/comments","events_url":"https://api.github.com/repos/roots/bedrock-ansible/issues/226/events","html_url":"https://github.com/roots/bedrock-ansible/issues/226","id":80569963,"number":226,"title":"TASK: [deploy | Copy project folders] creates duplicates","user":{"login":"metaarts","id":1759055,"avatar_url":"https://avatars.githubusercontent.com/u/1759055?v=3","gravatar_id":"","url":"https://api.github.com/users/metaarts","html_url":"https://github.com/metaarts","followers_url":"https://api.github.com/users/metaarts/followers","following_url":"https://api.github.com/users/metaarts/following{/other_user}","gists_url":"https://api.github.com/users/metaarts/gists{/gist_id}","starred_url":"https://api.github.com/users/metaarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metaarts/subscriptions","organizations_url":"https://api.github.com/users/metaarts/orgs","repos_url":"https://api.github.com/users/metaarts/repos","events_url":"https://api.github.com/users/metaarts/events{/privacy}","received_events_url":"https://api.github.com/users/metaarts/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-25T15:25:52Z","updated_at":"2015-07-01T19:06:10Z","closed_at":"2015-07-01T19:06:10Z","body":"During the Deploy process for remote servers (mentioned below) the source folder is copied to the destination folder on the selfsame location. This produced every time a duplicate.\r\n\r\n```\r\n- name: Copy project folders\r\n  command: cp -rp {{ deploy_helper.current_path }}/{{ item.item }} {{ deploy_helper.new_release_path }}/{{ item.item }}\r\n  with_items: project_folder_paths.results\r\n  when: item.stat.exists == True\r\n```\r\n\r\n"}}