Skip to content

Commit

Permalink
Update ansible playbook for copying repository and setting permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
catatsuy committed Apr 28, 2024
1 parent eb6d13a commit 3daec3f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions provisioning/image/ansible/05_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3daec3f

Please sign in to comment.