-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ansible playbook for copying repository and setting permissions
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,14 @@ | |
file: path=/home/isucon/repos/private_isu.git/Vagrantfile state=absent | ||
- name: git init | ||
shell: "cd /home/isucon/repos/private_isu.git/ && git init && git add . && git config --global user.email '[email protected]' && git config --global user.name 'admin' && git commit -m 'Initial commit'" | ||
- name: create working copy | ||
git: repo=file:///home/isucon/repos/private_isu.git | ||
dest=/home/isucon/private_isu | ||
update=yes | ||
force=yes | ||
- name: remove .git | ||
file: path=/home/isucon/private_isu/.git state=absent | ||
- name: Copy repository | ||
copy: | ||
src: /home/isucon/repos/private_isu.git/ | ||
dest: /home/isucon/private_isu | ||
remote_src: yes | ||
mode: '0755' | ||
- name: remove .git | ||
file: path=/home/isucon/private_isu/.git state=absent | ||
- name: remove repos | ||
|