Skip to content

Commit 2a3badf

Browse files
author
Pierre Buyle
committed
Merge branch 'git-checkout' of git://github.com/praseodym/ansible-nginx-drupal into praseodym-git-checkout
2 parents ba4e222 + 0e788cd commit 2a3badf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tasks/git-checkout.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
2+
- name: "Get configuration directory's .git stats"
3+
stat: path={{nginx_drupal_config_path}}/.git
4+
register: nginx_drupal_config_path_dot_git
25
- name: "Remove existing configurarion directory"
36
file: path={{nginx_drupal_config_path}} state=absent
7+
when: nginx_drupal_config_path_dot_git.stat.exists == false
48
- name: "Checkout configuration directory"
59
git: dest={{nginx_drupal_config_path}} repo={{nginx_drupal_git.repo}} version={{nginx_drupal_git.version}}
610
notify:
711
- reload nginx
8-
- name: "Remove example.com configurarion file"
12+
- name: "Remove example.com configuration file"
913
file: path={{nginx_drupal_config_path}}/sites-available/example.com.conf state=absent

tasks/main.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
# tasks file for nginx-drupal
3-
- name: "Get configuration directory's .git stats"
4-
stat: path={{nginx_drupal_config_path}}/.git
5-
register: nginx_drupal_config_path_dot_git
63
- include: git-checkout.yml
7-
when: nginx_drupal_config_path_dot_git.stat.exists == false
84
- name: "Create microcache directory"
95
file: path=/var/cache/nginx/microcache state=directory
106
when: nginx_drupal_microcache

0 commit comments

Comments
 (0)