Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Only run update commands when the codebase is updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Mar 9, 2015
1 parent dfe8b76 commit 2a10ca2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion playbooks/drupal/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
when: not drupal_install_complete.stat.exists

- include: tasks/update.yml
when: drupal_install_complete.stat.exists
when: drupal_install_complete.stat.exists and project_updated.changed

- include: tasks/cron.yml

Expand Down
1 change: 1 addition & 0 deletions playbooks/drupal/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
version: "{{ drupal_version }}"
update: yes
dest: "{{ drupal_docroot }}"
register: project_updated
notify: restart nginx
sudo_user: www-data

Expand Down

0 comments on commit 2a10ca2

Please sign in to comment.