Commit 54766b63 by John Jarvis

only change permissions when git checkout changes

parent 596b20cb
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
# Do A Checkout # Do A Checkout
- name: edxapp | checkout edx-platform repo into {{edx_platform_code_dir}} - name: edxapp | checkout edx-platform repo into {{edx_platform_code_dir}}
git: dest={{edx_platform_code_dir}} repo={{edx_platform_repo}} version={{edx_platform_commit}} git: dest={{edx_platform_code_dir}} repo={{edx_platform_repo}} version={{edx_platform_commit}}
register: edx_platform_checkout
tags: tags:
- lms - lms
- cms - cms
...@@ -35,6 +36,7 @@ ...@@ -35,6 +36,7 @@
- name: git clean after checking out edx-platform - name: git clean after checking out edx-platform
shell: cd {{edx_platform_code_dir}} && git clean -xdf shell: cd {{edx_platform_code_dir}} && git clean -xdf
when: edx_platform_checkout.changed
tags: tags:
- lms - lms
- cms - cms
...@@ -68,6 +70,7 @@ ...@@ -68,6 +70,7 @@
file: path={{edx_platform_code_dir}} state=directory owner=www-data group=www-data recurse=yes file: path={{edx_platform_code_dir}} state=directory owner=www-data group=www-data recurse=yes
# Post Checkout tasks will get run as handlers when the {{ edx_platform_code_dir }} is ready. # Post Checkout tasks will get run as handlers when the {{ edx_platform_code_dir }} is ready.
# Look at the handlers/main.yml in this role for a description of the tasks stated below. # Look at the handlers/main.yml in this role for a description of the tasks stated below.
when: edx_platform_checkout.changed
tags: tags:
- lms - lms
- cms - cms
...@@ -76,14 +79,18 @@ ...@@ -76,14 +79,18 @@
# Ruby plays that need to be run after platform updates. # Ruby plays that need to be run after platform updates.
- name: gem | gem install bundler - name: gem | gem install bundler
shell: RBENV_ROOT={{ rbenv_root }} GEM_HOME={{ gem_home }} {{ rbenv_root }}/shims/gem install bundle chdir={{ edx_platform_code_dir }} shell: >
RBENV_ROOT={{ rbenv_root }} GEM_HOME={{ gem_home }} {{ rbenv_root }}/shims/gem install bundle
chdir={{ edx_platform_code_dir }}
tags: tags:
- ruby - ruby
- deploy - deploy
- install - install
- name: bundle | bundle install - name: bundle | bundle install
shell: RBENV_ROOT={{ rbenv_root }} GEM_HOME={{ gem_home }} {{ gem_home }}/bin/bundle install --binstubs chdir={{ edx_platform_code_dir }} shell: >
RBENV_ROOT={{ rbenv_root }} GEM_HOME={{ gem_home }} {{ gem_home }}/bin/bundle install --binstubs
chdir={{ edx_platform_code_dir }}
tags: tags:
- ruby - ruby
- deploy - deploy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment